ESyS-Particle  2.3.4
List< T > Class Template Reference

#include <t_list.h>

Inheritance diagram for List< T >:

Public Member Functions

 List ()
 Pointer to current position in the list. More...
 
 List (const List &L)
 
virtual ~List ()
 
void Swap ()
 
void InsertAtStart (T *V)
 
void Append (T *V)
 
void InsertAfter (T *V)
 
void InsertBefore (T *V)
 
T * Get ()
 
void Put (T *V)
 
void Clear ()
 
void Destroy ()
 
Listoperator<< (T *V)
 
Listoperator>> (T *V)
 
void Next ()
 
void Prev ()
 
void First ()
 
void Last ()
 
int IsEnd ()
 
int IsStart ()
 
int SizeList ()
 
List operator+ (const List &L)
 
Listoperator+= (const List &L)
 
Listoperator= (const List &L)
 

Protected Attributes

Node< T > * Start
 Pointer to Start of list. More...
 
Node< T > * End
 Pointer to end of list. More...
 
Node< T > * Current
 

Detailed Description

template<class T>
class List< T >

List container.

Constructor & Destructor Documentation

◆ List() [1/2]

template<class T >
List< T >::List
inline

Pointer to current position in the list.

References NULL.

◆ List() [2/2]

template<class T >
List< T >::List ( const List< T > &  L)
inline

◆ ~List()

template<class T >
List< T >::~List
virtual

Member Function Documentation

◆ Append()

template<class T >
void List< T >::Append ( T *  V)
inline

References Node< T >::Next, NULL, Node< T >::Prev, and Node< T >::Val.

Referenced by CCounterList::addCounter(), and CCounterList::operator<<().

Here is the caller graph for this function:

◆ Clear()

template<class T >
void List< T >::Clear
inline

References Node< T >::Next, and NULL.

Referenced by CCounterList::~CCounterList().

Here is the caller graph for this function:

◆ Destroy()

template<class T >
void List< T >::Destroy
inline

◆ First()

template<class T >
void List< T >::First
inline

Referenced by CCounterList::counter(), CCounterList::print(), and CCounterList::~CCounterList().

Here is the caller graph for this function:

◆ Get()

template<class T >
T * List< T >::Get
inline

References console, Console::Critical(), and Console::Warning().

Referenced by CCounterList::counter(), CCounterList::print(), and CCounterList::~CCounterList().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InsertAfter()

template<class T >
void List< T >::InsertAfter ( T *  V)
inline

◆ InsertAtStart()

template<class T >
void List< T >::InsertAtStart ( T *  V)
inline

Insert an element at the begining of the list

Parameters
Vpointer to element to be inserted

◆ InsertBefore()

template<class T >
void List< T >::InsertBefore ( T *  V)
inline

◆ IsEnd()

template<class T >
int List< T >::IsEnd
inline

References NULL.

Referenced by CCounterList::counter(), CCounterList::print(), and CCounterList::~CCounterList().

Here is the caller graph for this function:

◆ IsStart()

template<class T >
int List< T >::IsStart
inline

◆ Last()

template<class T >
void List< T >::Last
inline

◆ Next()

template<class T >
void List< T >::Next
inline

Referenced by CCounterList::counter(), and CCounterList::print().

Here is the caller graph for this function:

◆ operator+()

template<class T >
List< T > List< T >::operator+ ( const List< T > &  L)
inline

◆ operator+=()

template<class T >
List< T > & List< T >::operator+= ( const List< T > &  L)
inline

◆ operator<<()

template<class T >
List< T > & List< T >::operator<< ( T *  V)
inline

◆ operator=()

template<class T >
List< T > & List< T >::operator= ( const List< T > &  L)
inline

◆ operator>>()

template<class T >
List< T > & List< T >::operator>> ( T *  V)
inline

◆ Prev()

template<class T >
void List< T >::Prev
inline

◆ Put()

template<class T >
void List< T >::Put ( T *  V)
inline

◆ SizeList()

template<class T >
int List< T >::SizeList
inline

return the number of element in the list

◆ Swap()

template<class T >
void List< T >::Swap
inline

References Node< T >::Next, and Node< T >::Prev.

Member Data Documentation

◆ Current

template<class T >
Node<T>* List< T >::Current
protected

◆ End

template<class T >
Node<T>* List< T >::End
protected

Pointer to end of list.

◆ Start

template<class T >
Node<T>* List< T >::Start
protected

Pointer to Start of list.

Referenced by List< T >::List(), List< T >::operator+=(), and List< T >::operator=().


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