Colobot
Public Member Functions | Protected Attributes | List of all members
CBot::CBotLinkedList< T > Class Template Reference

Public Member Functions

virtual ~CBotLinkedList ()
 Destructor. Be careful, destroys the whole linked list! More...
 
T * GetNext ()
 Returns the next variable in the linked list. More...
 
void AddNext (T *elem)
 Appends a new element at the end of the linked list. More...
 

Protected Attributes

T * m_next = nullptr
 

Constructor & Destructor Documentation

◆ ~CBotLinkedList()

template<typename T >
virtual CBot::CBotLinkedList< T >::~CBotLinkedList ( )
inlinevirtual

Destructor. Be careful, destroys the whole linked list!

Member Function Documentation

◆ GetNext()

template<typename T >
T * CBot::CBotLinkedList< T >::GetNext ( )
inline

Returns the next variable in the linked list.

Returns
Next element in the list, or nullptr if this was the last element

◆ AddNext()

template<typename T >
void CBot::CBotLinkedList< T >::AddNext ( T *  elem)
inline

Appends a new element at the end of the linked list.

Parameters
elemElement to add

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