Public Member Functions | Friends | List of all members
ILList< LListBase, T > Class Template Reference

Template class for intrusive linked lists. More...

Inheritance diagram for ILList< LListBase, T >:
Inheritance graph
[legend]
Collaboration diagram for ILList< LListBase, T >:
Collaboration graph
[legend]

Public Member Functions

 ILList ()
 Null construct. More...
 
 ILList (T *a)
 Construct given initial T. More...
 
 ILList (Istream &)
 Construct from Istream. More...
 
 ILList (const ILList< LListBase, T > &)
 Construct as copy. More...
 
template<class CloneArg >
 ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone. More...
 
template<class INew >
 ILList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class. More...
 
 ~ILList ()
 Destructor. More...
 
bool eraseHead ()
 Remove the head element specified from the list and delete it. More...
 
bool erase (T *p)
 Remove the specified element from the list and delete it. More...
 
void clear ()
 Clear the contents of the list. More...
 
void transfer (ILList< LListBase, T > &)
 Transfer the contents of the argument into this List. More...
 
void operator= (const ILList< LListBase, T > &)
 
- Public Member Functions inherited from UILList< LListBase, T >
 UILList ()
 Null construct. More...
 
 UILList (T *a)
 Construct given initial T. More...
 
 UILList (const UILList< LListBase, T > &)
 Construct as copy. More...
 
Tfirst ()
 Return the first entry. More...
 
const Tfirst () const
 Return the first entry. More...
 
Tlast ()
 Return the last entry. More...
 
const Tlast () const
 Return the last entry. More...
 
TremoveHead ()
 Remove and return head. More...
 
Tremove (T *p)
 Remove and return element. More...
 
Tremove (iterator &it)
 Remove and return specified by iterator. More...
 
void operator= (const UILList< LListBase, T > &)
 
iterator begin ()
 
const iteratorend ()
 
const_iterator cbegin () const
 
const const_iteratorcend () const
 
const_iterator begin () const
 
const const_iteratorend () const
 
const_reverse_iterator crbegin () const
 
const const_reverse_iteratorcrend () const
 
const_reverse_iterator rbegin () const
 
const const_reverse_iteratorrend () 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

Istreamoperator>> (Istream &, ILList< LListBase, T > &)
 Read List from Istream, discarding contents of existing List. More...
 

Additional Inherited Members

- Public Types inherited from UILList< LListBase, T >
typedef T value_type
 Type of values the DLList contains. More...
 
typedef Treference
 Type that can be used for storing into DLList::value_type. More...
 
typedef const Tconst_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
 

Detailed Description

template<class LListBase, class T>
class Foam::ILList< LListBase, T >

Template class for intrusive linked lists.

Source files

Definition at line 50 of file ILList.H.

Constructor & Destructor Documentation

ILList ( )
inline

Null construct.

Definition at line 80 of file ILList.H.

Referenced by ILList< DLListBase, Foam::molecule >::ILList(), and ILList< LListBase, T >::ILList().

Here is the caller graph for this function:

ILList ( T a)
inline

Construct given initial T.

Definition at line 84 of file ILList.H.

ILList ( Istream is)

Construct from Istream.

Definition at line 138 of file ILListIO.C.

References ILList< LListBase, T >::clear(), Foam::operator>>(), and Foam::read().

Here is the call graph for this function:

ILList ( const ILList< LListBase, T > &  lst)

Construct as copy.

Definition at line 31 of file ILList.C.

References UILList< LListBase, T >::begin(), UILList< LListBase, T >::end(), and ILList< LListBase, T >::ILList().

Here is the call graph for this function:

ILList ( const ILList< LListBase, T > &  lst,
const CloneArg &  cloneArg 
)

Copy constructor with additional argument for clone.

Definition at line 50 of file ILList.C.

References UILList< LListBase, T >::begin(), and UILList< LListBase, T >::end().

Here is the call graph for this function:

ILList ( Istream is,
const INew iNew 
)

Construct from Istream using given Istream constructor class.

Definition at line 131 of file ILListIO.C.

References Foam::read().

Here is the call graph for this function:

~ILList ( )

Destructor.

Definition at line 72 of file ILList.C.

References ILList< LListBase, T >::clear().

Referenced by ILList< DLListBase, Foam::molecule >::ILList().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

bool eraseHead ( )

Remove the head element specified from the list and delete it.

Definition at line 81 of file ILList.C.

References UILList< LListBase, T >::removeHead(), and Foam::T().

Referenced by ILList< LListBase, T >::clear(), and ILList< DLListBase, Foam::molecule >::ILList().

Here is the call graph for this function:

Here is the caller graph for this function:

bool erase ( T p)

Remove the specified element from the list and delete it.

Definition at line 96 of file ILList.C.

References Foam::T().

Referenced by ILList< DLListBase, Foam::molecule >::ILList(), refinementSurfaces::refinementSurfaces(), and shellSurfaces::shellSurfaces().

Here is the call graph for this function:

Here is the caller graph for this function:

void clear ( )

Clear the contents of the list.

Definition at line 112 of file ILList.C.

References clear(), and ILList< LListBase, T >::eraseHead().

Referenced by ILList< DLListBase, Foam::molecule >::ILList(), ILList< LListBase, T >::ILList(), ILList< LListBase, T >::operator=(), ILList< LListBase, T >::transfer(), and ILList< LListBase, T >::~ILList().

Here is the call graph for this function:

Here is the caller graph for this function:

void transfer ( ILList< LListBase, T > &  lst)

Transfer the contents of the argument into this List.

and annul the argument list.

Definition at line 125 of file ILList.C.

References ILList< LListBase, T >::clear().

Referenced by ILList< DLListBase, Foam::molecule >::ILList().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator= ( const ILList< LListBase, T > &  lst)

Definition at line 135 of file ILList.C.

References UILList< LListBase, T >::begin(), ILList< LListBase, T >::clear(), and UILList< LListBase, T >::end().

Referenced by ILList< DLListBase, Foam::molecule >::ILList().

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

Istream& operator>> ( Istream ,
ILList< LListBase, T > &   
)
friend

Read List from Istream, discarding contents of existing List.


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