Cogs.Core
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Cogs::Core::List< T, offset > Struct Template Reference

Classes

struct  Iterator
 

Public Member Functions

void remove (T *item)
 
T * push (T *item)
 
T * shift ()
 
T * pop ()
 
bool empty () const
 
void swap (List &that)
 
T * front ()
 
T * back ()
 
const T * front () const
 
const T * back () const
 
Iterator begin ()
 
Iterator end ()
 

Static Public Member Functions

static T * get (ListNode *n)
 

Public Attributes

ListNode head
 
ListNode tail
 
Listmyself = nullptr
 
size_t count = 0
 

Detailed Description

template<typename T, size_t offset>
struct Cogs::Core::List< T, offset >

Definition at line 16 of file List.h.

Constructor & Destructor Documentation

◆ List()

template<typename T , size_t offset>
Cogs::Core::List< T, offset >::List ( )
inline

Definition at line 28 of file List.h.

Member Function Documentation

◆ back() [1/2]

template<typename T , size_t offset>
T * Cogs::Core::List< T, offset >::back ( )
inline

Definition at line 190 of file List.h.

◆ back() [2/2]

template<typename T , size_t offset>
const T * Cogs::Core::List< T, offset >::back ( ) const
inline

Definition at line 206 of file List.h.

◆ begin()

template<typename T , size_t offset>
Iterator Cogs::Core::List< T, offset >::begin ( )
inline

Definition at line 214 of file List.h.

◆ empty()

template<typename T , size_t offset>
bool Cogs::Core::List< T, offset >::empty ( ) const
inline

Definition at line 129 of file List.h.

◆ end()

template<typename T , size_t offset>
Iterator Cogs::Core::List< T, offset >::end ( )
inline

Definition at line 221 of file List.h.

◆ front() [1/2]

template<typename T , size_t offset>
T * Cogs::Core::List< T, offset >::front ( )
inline

Definition at line 182 of file List.h.

◆ front() [2/2]

template<typename T , size_t offset>
const T * Cogs::Core::List< T, offset >::front ( ) const
inline

Definition at line 198 of file List.h.

◆ get()

template<typename T , size_t offset>
static T * Cogs::Core::List< T, offset >::get ( ListNode n)
inlinestatic

Definition at line 39 of file List.h.

◆ pop()

template<typename T , size_t offset>
T * Cogs::Core::List< T, offset >::pop ( )
inline

Definition at line 111 of file List.h.

◆ push()

template<typename T , size_t offset>
T * Cogs::Core::List< T, offset >::push ( T *  item)
inline

Definition at line 71 of file List.h.

◆ remove()

template<typename T , size_t offset>
void Cogs::Core::List< T, offset >::remove ( T *  item)
inline

Definition at line 44 of file List.h.

◆ shift()

template<typename T , size_t offset>
T * Cogs::Core::List< T, offset >::shift ( )
inline

Definition at line 92 of file List.h.

◆ swap()

template<typename T , size_t offset>
void Cogs::Core::List< T, offset >::swap ( List< T, offset > &  that)
inline

Definition at line 136 of file List.h.

Member Data Documentation

◆ count

template<typename T , size_t offset>
size_t Cogs::Core::List< T, offset >::count = 0

Definition at line 180 of file List.h.

◆ head

template<typename T , size_t offset>
ListNode Cogs::Core::List< T, offset >::head

Definition at line 177 of file List.h.

◆ myself

template<typename T , size_t offset>
List* Cogs::Core::List< T, offset >::myself = nullptr

Definition at line 179 of file List.h.

◆ tail

template<typename T , size_t offset>
ListNode Cogs::Core::List< T, offset >::tail

Definition at line 178 of file List.h.


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