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

Public Member Functions | |
| OSRTDListClass () | |
| The default constructor initializes the list contents to empty. | |
| OSRTDListClass (const OSRTDListClass &o) | |
| The copy constructor makes a copy of the list object. | |
| void | append (void *pdata) |
| The append method adds an item to the end of the list. | |
| void | appendCopy (void *pdata, size_t nbytes) |
| The appendCopy method adds a copy of an item to the end of the list. | |
| OSRTDListNodeClass * | getHead () |
| This method returns a pointer to a head node of the list. | |
| const OSRTDListNodeClass * | getHead () const |
| This method returns a pointer to a head node of the list. | |
| const void * | getItem (int idx) const |
| The getItem method retrieves the data item from the list at the given index. | |
| OSRTDListNodeClass * | getTail () |
| This method returns a pointer to a tail node of the list. | |
| const OSRTDListNodeClass * | getTail () const |
| This method returns a pointer to a tail node of the list. | |
| void | insert (int index, void *pdata) |
| The insert method inserts a data item into the list at the given indexed location. | |
Detailed Description
This class represents a doubly-linked list structure.
It extends the C++ OSRTDListBaseClass type. It provides methods for adding, retrieving, and removing items from linked lists. This list class is used to hold primitive types which are NOT derived from OSRTBaseType. See description of OSRTObjListClass for list of objects class.
Definition at line 241 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 285 of file rtxCppDList.h. |
|
|
This method returns a pointer to a head node of the list.
Definition at line 276 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 296 of file rtxCppDList.h. References OSRTDListNodeClass::getData(). |
|
|
This method returns a pointer to a tail node of the list.
Definition at line 316 of file rtxCppDList.h. |
|
|
This method returns a pointer to a tail node of the list.
Definition at line 307 of file rtxCppDList.h. |
|
||||||||||||
|
The insert method inserts a data item into the list at the given indexed location. The index is zero-based.
|
The documentation for this class was generated from the following file:
