#include <CTBtreeList.hxx>
Inheritance diagram for CTBtreeListHead:
Public Methods | |
CTBtreeListHead () | |
~CTBtreeListHead () | |
TC * | First () const |
TC * | Last () const |
bool | operator! () const |
operator bool () const | |
Private Methods | |
CTBtreeListHead (const CTBtreeListHead< TP, TC > &rhs) | |
CTBtreeListHead< TP, TC > & | operator= (const CTBtreeListHead< TP, TC > &rhs) |
Private Attributes | |
TC * | mp_first |
TC * | mp_last |
Friends | |
class | CTBtreeListLink< TP, TC > |
For a detailed description see class CTBtreeListLink
.
Definition at line 72 of file CTBtreeList.hxx.
|
Default constructor, results in empty list.
Definition at line 324 of file CTBtreeList.icc. |
|
Destructor. The list must be empty by the time the destructor is executed. It is the responsibility of the destructor of the class embedding the CTBtreeListHead object to remove all elements from the list and decide about ownership and live time of those objects. If the embedding class does not control the live time of the list objects a typical cleanup code look like
hd::~hd() { while (m_head) m_head.First()->Remove(&el::m_link, &hd::m_head); } If the embedding class owns the linked objects and is therefore obliged to delete them a typical cleanup code look like
hd::~hd() { while (m_head) delete m_head.First(); } Definition at line 358 of file CTBtreeList.icc. |
|
|
|
Returns a pointer to the first list element, or null if empty. A typical head-to-tail traversal of a list is implemented like for (el* p = m_head.First(); p; p = p->m_link.Next()) {...} Definition at line 373 of file CTBtreeList.icc. Referenced by CTBcallbackTargetBase::Disconnect(), and CTBcallbackTargetBase::NConnect().
|
|
Returns a pointer to the last list element, or null if empty. A typical tail-to-head traversal of a list is implemented like for (el* p = m_head.Last(); p; p = p->m_link.Prev()) {...} Definition at line 388 of file CTBtreeList.icc. |
|
Returns
Definition at line 397 of file CTBtreeList.icc. |
|
Returns
Definition at line 406 of file CTBtreeList.icc. |
|
|
|
Definition at line 74 of file CTBtreeList.hxx. |
|
Definition at line 97 of file CTBtreeList.hxx. |
|
Definition at line 98 of file CTBtreeList.hxx. |