IdList< T > Class Template Reference Generic Real linked list.Class IdList implements an intrusive Real linked list as a template class. As such, the list elements must provide the links themselfs. For conveniance, we also provide class IdElement that adds both links to an arbitrary class as template parameter. More...
Inheritance diagram for IdList< T >:
![]()
Detailed Descriptiontemplate<class T>
|
|
explicit |
void append | ( | T * | elem | ) |
appends elem
to end of list.
Definition at line 160 of file idlist.h.
Referenced by SVSetBase< Real >::create(), and SVSetBase< Real >::xtend().
void append | ( | IdList< T > & | list | ) |
T* first | ( | ) | const |
returns first element in list.
Definition at line 131 of file idlist.h.
Referenced by IdList< soplex::SVSetBase::DLPSV >::append(), SVSetBase< Real >::countUnusedMem(), SVSetBase< Real >::deleteVec(), IdList< soplex::SVSetBase::DLPSV >::insert(), SVSetBase< Real >::isConsistent(), SVSetBase< Real >::memPack(), SVSetBase< Real >::memRemax(), IdList< soplex::SVSetBase::DLPSV >::prepend(), and SVSetBase< Real >::xtend().
void insert | ( | T * | elem, |
T * | after | ||
) |
void insert | ( | IdList< T > & | list, |
T * | after | ||
) |
bool isConsistent | ( | ) | const |
consistency check.
Definition at line 315 of file idlist.h.
Referenced by SVSetBase< Real >::isConsistent().
T* last | ( | ) | const |
returns last element in list.
Definition at line 137 of file idlist.h.
Referenced by IdList< soplex::SVSetBase::DLPSV >::append(), SVSetBase< Real >::deleteVec(), SVSetBase< Real >::ensureMem(), IdList< soplex::SVSetBase::DLPSV >::insert(), IdList< soplex::SVSetBase::DLPSV >::prepend(), and SVSetBase< Real >::xtend().
void move | ( | ptrdiff_t | delta | ) |
adjusts list pointers to a new memory address.
When all elements have been moved in memory (e.g. because of reallocation) with a fixed offset delta
, the list will be reset to the new adresses.
Definition at line 301 of file idlist.h.
Referenced by SVSetBase< Real >::reMax().
T* next | ( | const T * | elem | ) | const |
returns successor of elem
or 0, if elem
is the last element.
Definition at line 143 of file idlist.h.
Referenced by SVSetBase< Real >::countUnusedMem(), SVSetBase< Real >::isConsistent(), SVSetBase< Real >::memPack(), and SVSetBase< Real >::memRemax().
void prepend | ( | T * | elem | ) |
void prepend | ( | IdList< T > & | list | ) |
T* prev | ( | const T * | elem | ) | const |
void remove | ( | T * | elem | ) |
removes elem
from list.
Definition at line 246 of file idlist.h.
Referenced by SVSetBase< Real >::deleteVec(), and SVSetBase< Real >::xtend().