|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Home
|
You are here: Home > Support > Reference v1.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members
TXmObjectList Class Template ReferenceInheritance diagram for TXmObjectList: ![]() Detailed Descriptiontemplate<class C>
List based container with XmArray interface managing references to classes of type C derived from XmObject.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef TXmObjectListBox< C > | box |
| Small box including a reference to the enclosed object and its index. | |
|
typedef TXmObjectListIterator< C > | iterator |
| Iterator for processing forward or backward through the items of an TXmObjectList. | |
Public Member Functions | |
| int | size () const |
| Return number of items. | |
| box & | front () const |
| Return a reference to the first object box. | |
| box & | back () |
| Return a reference to the last object box. | |
| iterator | begin () const |
| Return an iterator referencing the first element. | |
| iterator | end () const |
| Return an iterator pointing behind the last element. | |
| void | push_front (C *obj) |
| Push an object to the front of the list. | |
| void | push_back (C *obj) |
| Push an object to the back of the list. | |
| void | insert (iterator before, C *obj) |
| Insert an object in front of the specified iterator. | |
| void | erase (iterator i) |
| Delete the specified object. | |
| C * | ExculdeObject (iterator i) |
| Remove the given item without the deleting the attached object. | |
| void | clear () |
| Delete all items of the container. | |
| void | swap (TXmObjectList &list) |
| Swap the items of two lists in constant time. | |
| box * | FindObjBox (int index) const |
| Return the object box with the specified index. | |
|
|
Remove the given item without the deleting the attached object.
Reimplemented from XmObjectList. |
|
|
Return the object box with the specified index. An object box can be safely converted into the iterator ::XmObjectListIterator.
Reimplemented from XmObjectList. |