wxArt2D
Public Member Functions | List of all members
a2dObjectList Class Reference

list of a2dObject's More...

#include <gen.h>

Inheritance diagram for a2dObjectList:
Inheritance graph
[legend]
Collaboration diagram for a2dObjectList:
Collaboration graph
[legend]

Public Member Functions

void MakeUnique ()
 all with reference count > 1 are cloned.
 
a2dObjectListoperator= (a2dObjectList &other)
 
a2dObjectListClone (a2dObject::CloneOptions options, a2dRefMap *refs=NULL) const
 Clone everything ( Clones objects also) in a new created list.
 
bool Release (const wxString &classname=wxT(""), bool all=false)
 
a2dObjectFind (const wxString &classname=wxT(""), const wxString &name=wxT(""))
 Find object within the given property name and classname. More...
 
int CollectObjects (a2dObjectList *total, const wxString &propertyNameFilter=wxT(""), const wxString &classname=wxT(""))
 Copy objects fitting the given filter to the total list. More...
 
- Public Member Functions inherited from a2dSmrtPtrList< a2dObject >
itSmart Find (a2dObject *object)
 Find a specific object.
 
const_itSmart Find (a2dObject *object) const
 Find a specific object.
 
int IndexOf (a2dObject *object) const
 Find the index of a specific object.
 
bool ReleaseObject (a2dObject *object)
 release a certain object from the list
 
- Public Member Functions inherited from a2dlist< a2dSmrtPtr< a2dObject > >
 a2dlist ()
 Default constructor.
 
 a2dlist (const a2dlist &other)
 Copy constructor.
 
 ~a2dlist ()
 Destructor.
 
a2dlist< a2dSmrtPtr< a2dObject >
>::const_iterator 
item (size_t index) const
 
a2dlist< a2dSmrtPtr< a2dObject >
>::iterator 
item (size_t index)
 
a2dlist< a2dSmrtPtr< a2dObject >
>::reverse_iterator 
rerase (typename std::list< a2dSmrtPtr< a2dObject >, std::allocator< a2dSmrtPtr< a2dObject > > >::reverse_iterator iterr)
 
std::list< a2dSmrtPtr
< a2dObject >, std::allocator
< a2dSmrtPtr< a2dObject >
> >::iterator 
GetPreviousAround (typename std::list< a2dSmrtPtr< a2dObject >, std::allocator< a2dSmrtPtr< a2dObject > > >::iterator iter)
 get the previous node ( –end() if no previous )
 
std::list< a2dSmrtPtr
< a2dObject >, std::allocator
< a2dSmrtPtr< a2dObject >
> >::iterator 
GetNextAround (typename std::list< a2dSmrtPtr< a2dObject >, std::allocator< a2dSmrtPtr< a2dObject > > >::iterator iter)
 get the next node ( begin() if no next )
 

Additional Inherited Members

- Public Types inherited from a2dSmrtPtrList< a2dObject >
typedef a2dlist< a2dSmrtPtr
< a2dObject > >::iterator 
itSmart
 
typedef a2dlist< a2dSmrtPtr
< a2dObject >
>::const_iterator 
const_itSmart
 

Detailed Description

list of a2dObject's

Definition at line 3157 of file gen.h.

Member Function Documentation

int a2dObjectList::CollectObjects ( a2dObjectList total,
const wxString &  propertyNameFilter = wxT( "" ),
const wxString &  classname = wxT( "" ) 
)

Copy objects fitting the given filter to the total list.

Parameters
totallist of object found (may already contain elements found in earlier call)
propertyNameFilterIf property name is set the object needs to have a name which matches propertyname.
classnameIf type is empty it collects all objects else only object with this class name.
Returns
number of objects found

Definition at line 4169 of file gen.cpp.

a2dObject * a2dObjectList::Find ( const wxString &  classname = wxT( "" ),
const wxString &  name = wxT( "" ) 
)

Find object within the given property name and classname.

Parameters
classnameIf classname is empty it collects all objects else only object with this class name.
nameIf a name is set the object needs to have this name

Definition at line 4151 of file gen.cpp.

a2dObjectList& a2dObjectList::operator= ( a2dObjectList other)

this only copies pointer stored in the list, if you want the object itself copied also, use Clone

bool a2dObjectList::Release ( const wxString &  classname = wxT( "" ),
bool  all = false 
)

release only objects with the given classname and has property named propertyname and object name empty string means ignore.

Definition at line 4129 of file gen.cpp.


The documentation for this class was generated from the following files:
a2dObjectList Class Reference -- Sun Oct 12 2014 17:04:44 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation