Template class for intrusive linked lists. More...
Classes | |
class | const_iterator |
An STL-conforming const_iterator. More... | |
class | const_reverse_iterator |
An STL-conforming const_reverse_iterator. More... | |
class | iterator |
An STL-conforming iterator. More... | |
Public Types | |
typedef T | value_type |
Type of values the DLList contains. More... | |
typedef T & | reference |
Type that can be used for storing into DLList::value_type. More... | |
typedef const T & | const_reference |
Type that can be used for storing into constant. More... | |
typedef label | size_type |
The type that can represent the size of a DLList. More... | |
typedef LListBase::iterator | LListBase_iterator |
typedef LListBase::const_iterator | LListBase_const_iterator |
Public Member Functions | |
UILList () | |
Null construct. More... | |
UILList (T *a) | |
Construct given initial T. More... | |
UILList (const UILList< LListBase, T > &) | |
Copy constructor. More... | |
UILList (UILList< LListBase, T > &&) | |
Move constructor. More... | |
T * | first () |
Return the first entry. More... | |
const T * | first () const |
Return the first entry. More... | |
T * | last () |
Return the last entry. More... | |
const T * | last () const |
Return the last entry. More... | |
T * | removeHead () |
Remove and return head. More... | |
T * | remove (T *p) |
Remove and return element. More... | |
T * | remove (iterator &it) |
Remove and return specified by iterator. More... | |
void | operator= (const UILList< LListBase, T > &) |
Assignment operator. More... | |
void | operator= (UILList< LListBase, T > &&) |
Move assignment operator. More... | |
iterator | begin () |
const iterator & | end () |
const_iterator | cbegin () const |
const const_iterator & | cend () const |
const_iterator | begin () const |
const const_iterator & | end () const |
const_reverse_iterator | crbegin () const |
const const_reverse_iterator & | crend () const |
const_reverse_iterator | rbegin () const |
const const_reverse_iterator & | rend () const |
bool | operator== (const UILList< LListBase, T > &) const |
Equality operation on ULists of the same type. More... | |
bool | operator!= (const UILList< LListBase, T > &) const |
The opposite of the equality operation. Takes linear time. More... | |
Friends | |
class | iterator |
class | const_iterator |
class | const_reverse_iterator |
Ostream & | operator (Ostream &, const UILList< LListBase, T > &) |
Template class for intrusive linked lists.
typedef T value_type |
Type that can be used for storing into DLList::value_type.
objects.
typedef const T& const_reference |
Type that can be used for storing into constant.
DLList::value_type objects.
typedef LListBase::iterator LListBase_iterator |
typedef LListBase::const_iterator LListBase_const_iterator |
|
inline |
Null construct.
Definition at line 88 of file UILList.H.
Referenced by UILList< LListBase, T >::UILList().
Construct given initial T.
Definition at line 92 of file UILList.H.
References UILList< LListBase, T >::UILList().
Copy constructor.
Definition at line 31 of file UILList.C.
References UILList< LListBase, T >::begin(), and UILList< LListBase, T >::end().
|
inline |
Return the first entry.
Definition at line 109 of file UILList.H.
References Foam::first(), and Foam::T().
Referenced by lineFace::calcSamples(), points::calcSamples(), snappyRefineDriver::snappyRefineDriver(), dictionaryEntry::startLineNumber(), dictionary::startLineNumber(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::thermophysicalPropertiesSelector().
|
inline |
Return the first entry.
Definition at line 115 of file UILList.H.
References Foam::first(), and Foam::T().
|
inline |
Return the last entry.
Definition at line 121 of file UILList.H.
References Foam::T().
Referenced by dictionaryEntry::endLineNumber(), dictionary::endLineNumber(), and dictionary::write().
|
inline |
|
inline |
Remove and return head.
Definition at line 136 of file UILList.H.
References Foam::T().
Referenced by ILList< LListBase, T >::eraseHead().
Remove and return element.
Definition at line 142 of file UILList.H.
Referenced by dictionary::add(), Cloud< passiveParticle >::move(), and dictionary::remove().
Remove and return specified by iterator.
Definition at line 148 of file UILList.H.
References UILList< LListBase, T >::operator=(), and Foam::T().
Assignment operator.
Definition at line 50 of file UILList.C.
References UILList< LListBase, T >::begin(), clear(), and UILList< LListBase, T >::end().
Referenced by UILList< LListBase, T >::remove().
|
inline |
Definition at line 218 of file UILList.H.
Referenced by Cloud< passiveParticle >::begin(), ILList< LListBase, T >::ILList(), ILList< LListBase, T >::operator=(), UILList< LListBase, T >::operator=(), and UILList< LListBase, T >::UILList().
|
inline |
Definition at line 223 of file UILList.H.
Referenced by Cloud< passiveParticle >::end(), ILList< LListBase, T >::ILList(), ILList< LListBase, T >::operator=(), UILList< LListBase, T >::operator=(), and UILList< LListBase, T >::UILList().
|
inline |
Definition at line 275 of file UILList.H.
Referenced by Cloud< passiveParticle >::cbegin().
|
inline |
Definition at line 280 of file UILList.H.
Referenced by Cloud< passiveParticle >::cend().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 349 of file UILList.H.
Referenced by GeometricBoundaryField< vector, pointPatchField, pointMesh >::readField().
|
inline |
Definition at line 354 of file UILList.H.
References UILList< LListBase, T >::operator!=(), and UILList< LListBase, T >::operator==().
Referenced by GeometricBoundaryField< vector, pointPatchField, pointMesh >::readField().
Equality operation on ULists of the same type.
Returns true when the ULists are element-wise equal (using UList::value_type::operator==). Takes linear time.
Definition at line 70 of file UILList.C.
References Foam::equal().
Referenced by UILList< LListBase, T >::rend().
The opposite of the equality operation. Takes linear time.
Definition at line 95 of file UILList.C.
References Foam::operator==().
Referenced by UILList< LListBase, T >::rend().
|
friend |
|
friend |