![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cList.h>
Public Member Functions | |
cListBase () noexcept | |
virtual | ~cListBase () |
virtual void | InsertListNode (cListNodeBase *pNodeNew, cListNodeBase *pNodePrev=nullptr) |
void | InsertList (cListBase *pListSrc, cListNodeBase *pNodePrev=nullptr) |
void | InsertBefore (cListNodeBase *pNodeNew, const cListNodeBase *pNodeNext) |
void | InsertHead (cListNodeBase *pNodeNew) |
void | InsertTail (cListNodeBase *pNodeNew) |
void | DisposeAll () |
void | Empty () |
cListNodeBase * | get_Head (void) const noexcept |
cListNodeBase * | get_Tail (void) const noexcept |
ITERATE_t | get_Count () const noexcept |
bool | isEmpty () const noexcept |
cListNodeBase * | GetAt (ITERATE_t index) const |
iterate the linked list. More... | |
bool | IsMyChild (const cListNodeBase *pNode) const noexcept |
Protected Member Functions | |
virtual void | RemoveListNode (cListNodeBase *pNode) |
allow Override of this. called when child pObRec removed from list. More... | |
Protected Attributes | |
ITERATE_t | m_iCount |
how many children? nice to get read only direct access to this for scripting. More... | |
Friends | |
class | cListNodeBase |
class | cListTests |
Double linked list. NOT circular. head and tail are nullptr.
|
inlinenoexcept |
|
inlinevirtual |
void Gray::cListBase::DisposeAll | ( | void | ) |
call DisposeThis() for all entries.
void Gray::cListBase::Empty | ( | ) |
empty the list. but don't necessarily DisposeThis() the objects.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
cListNodeBase * Gray::cListBase::GetAt | ( | ITERATE_t | index | ) | const |
iterate the linked list.
iterate the linked list. Not very efficient. iterative.
|
inline |
|
inline |
void Gray::cListBase::InsertList | ( | cListBase * | pListSrc, |
cListNodeBase * | pNodePrev = nullptr |
||
) |
Transfer the contents of another list into this one.
|
virtual |
Override this to check items being added. pPrev = nullptr = first
Add pNodeNew after pNodePrev. pNodePrev = nullptr == add to the start.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
protectedvirtual |
allow Override of this. called when child pObRec removed from list.
Override this to get called when an item is removed from this list. Never called directly. ALWAYS called from pObRec->RemoveFromParent()
Some object is being removed from my list. Override this to get called when an item is removed from this list. just remove from list. It may or may not be deleting itself.
|
friend |
|
friend |
|
protected |
how many children? nice to get read only direct access to this for scripting.