Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cListT< _TYPE_REC > Class Template Reference

#include <cList.h>

Inheritance diagram for Gray::cListT< _TYPE_REC >:
Gray::cListBase

Public Member Functions

_TYPE_REC * GetAt (ITERATE_t index) const
 
_TYPE_REC * get_Head () const
 
_TYPE_REC * get_Tail () const
 
- Public Member Functions inherited from Gray::cListBase
 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 ()
 
cListNodeBaseget_Head (void) const noexcept
 
cListNodeBaseget_Tail (void) const noexcept
 
ITERATE_t get_Count () const noexcept
 
bool isEmpty () const noexcept
 
cListNodeBaseGetAt (ITERATE_t index) const
 iterate the linked list. More...
 
bool IsMyChild (const cListNodeBase *pNode) const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from Gray::cListBase
virtual void RemoveListNode (cListNodeBase *pNode)
 allow Override of this. called when child pObRec removed from list. More...
 
- Protected Attributes inherited from Gray::cListBase
ITERATE_t m_iCount
 how many children? nice to get read only direct access to this for scripting. More...
 

Detailed Description

template<class _TYPE_REC>
class Gray::cListT< _TYPE_REC >

Hold a List of _TYPE_REC things.

Note
_TYPE_REC is the type of class this list contains. _TYPE_REC is based on cListNodeT<_TYPE_REC> and/or cListNodeBase

Member Function Documentation

◆ get_Head()

template<class _TYPE_REC >
_TYPE_REC* Gray::cListT< _TYPE_REC >::get_Head ( void  ) const
inline

◆ get_Tail()

template<class _TYPE_REC >
_TYPE_REC* Gray::cListT< _TYPE_REC >::get_Tail ( void  ) const
inline

◆ GetAt()

template<class _TYPE_REC >
_TYPE_REC* Gray::cListT< _TYPE_REC >::GetAt ( ITERATE_t  index) const
inline

iterate the linked list.


The documentation for this class was generated from the following file: