OSRTObjListClass Class Reference
This class represents a doubly-linked list structure for objects. More...
#include <rtxCppDList.h>
Inheritance diagram for OSRTObjListClass:

Public Member Functions | |
| OSRTObjListClass () | |
| The default constructor initializes the list contents to empty. | |
| void | append (OSRTBaseType *pdata) |
| The append method adds an item to the end of the list. | |
| void | appendCopy (const OSRTBaseType *pdata) |
| The appendCopy method adds a copy of an item to the end of the list. | |
| OSRTBaseType * | clone () const |
| OSRTObjListNodeClass * | getHead () |
| This method returns a pointer to a head node of the list. | |
| const OSRTObjListNodeClass * | getHead () const |
| This method returns a pointer to a head node of the list. | |
| const OSRTBaseType * | getItem (int idx) const |
| The getItem method retrieves the data item from the list at the given index. | |
| OSRTObjListNodeClass * | getTail () |
| This method returns a pointer to a tail node of the list. | |
| const OSRTObjListNodeClass * | getTail () const |
| This method returns a pointer to a tail node of the list. | |
| void | insert (int index, OSRTBaseType *pdata) |
| The insert method inserts a data item into the list at the given indexed location. | |
| OSRTObjListClass & | operator= (const OSRTObjListClass &) |
| Assignment operator. | |
Detailed Description
This class represents a doubly-linked list structure for objects.
It extends the C++ OSRTDListBaseClass type. It is similar to the OSRTDListClass described above except that the base type for items in the list is OSRTBaseType. This allows items in the list to be properly destructed when memory ownership for the items is transferred to the list object.
Definition at line 340 of file rtxCppDList.h.
Member Function Documentation
|
|
The append method adds an item to the end of the list.
|
|
|
The appendCopy method adds a copy of an item to the end of the list.
|
|
|
This method returns a pointer to a head node of the list.
Definition at line 385 of file rtxCppDList.h. |
|
|
This method returns a pointer to a head node of the list.
Definition at line 376 of file rtxCppDList.h. |
|
|
The getItem method retrieves the data item from the list at the given index. The index is zero-based.
Definition at line 396 of file rtxCppDList.h. References OSRTObjListNodeClass::getData(). |
|
|
This method returns a pointer to a tail node of the list.
Definition at line 416 of file rtxCppDList.h. |
|
|
This method returns a pointer to a tail node of the list.
Definition at line 407 of file rtxCppDList.h. |
|
||||||||||||
|
The insert method inserts a data item into the list at the given indexed location. The index is zero-based.
|
|
|
Assignment operator. Sets the list's value to the value of the given list. Note that a copy of each object in the given list is made. |
The documentation for this class was generated from the following file:
