ILList< LListBase, T > Class Template Reference

Template class for intrusive linked lists. More...

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

Public Member Functions

 ILList ()=default
 Default construct. More...
 
 ILList (T *item)
 Construct and insert the initial T item pointer. More...
 
 ILList (Istream &is)
 Construct from Istream. More...
 
 ILList (const ILList< LListBase, T > &lst)
 Copy construct using the 'clone()' method for each element. More...
 
 ILList (ILList< LListBase, T > &&lst)
 Move construct. More...
 
template<class CloneArg >
 ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone 'clone()'. More...
 
template<class INew >
 ILList (Istream &is, const INew &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 *item)
 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 > &lst)
 
void operator= (const ILList< LListBase, T > &lst)
 Copy assignment using the 'clone()' method for each element. More...
 
void operator= (ILList< LListBase, T > &&lst)
 Move assignment. More...
 

Friends

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

Detailed Description

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

Template class for intrusive linked lists.

Source files

Definition at line 52 of file ILList.H.

Constructor & Destructor Documentation

◆ ILList() [1/7]

ILList ( )
default

Default construct.

◆ ILList() [2/7]

ILList ( T item)
inlineexplicit

Construct and insert the initial T item pointer.

Definition at line 85 of file ILList.H.

◆ ILList() [3/7]

ILList ( Istream is)

Construct from Istream.

Definition at line 130 of file ILListIO.C.

◆ ILList() [4/7]

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

Copy construct using the 'clone()' method for each element.

Definition at line 34 of file ILList.C.

References append().

Here is the call graph for this function:

◆ ILList() [5/7]

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

Move construct.

Definition at line 46 of file ILList.C.

◆ ILList() [6/7]

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

Copy constructor with additional argument for clone 'clone()'.

Definition at line 57 of file ILList.C.

References append().

Here is the call graph for this function:

◆ ILList() [7/7]

ILList ( Istream is,
const INew inew 
)

Construct from Istream using given Istream constructor class.

Definition at line 123 of file ILListIO.C.

◆ ~ILList()

~ILList ( )

Destructor.

Definition at line 74 of file ILList.C.

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ eraseHead()

bool eraseHead ( )

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

Definition at line 83 of file ILList.C.

References p, and Foam::T().

Here is the call graph for this function:

◆ erase()

bool erase ( T item)

Remove the specified element from the list and delete it.

Definition at line 97 of file ILList.C.

References p, and Foam::T().

Referenced by refinementSurfaces::refinementSurfaces(), and shellSurfaces::shellSurfaces().

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

◆ clear()

void clear ( )

Clear the contents of the list.

Definition at line 112 of file ILList.C.

References clear().

Referenced by DSMCCloud< ParcelType >::clear().

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

◆ transfer()

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

Transfer the contents of the argument into this List and annul the argument list.

Definition at line 126 of file ILList.C.

References clear().

Here is the call graph for this function:

◆ operator=() [1/2]

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

Copy assignment using the 'clone()' method for each element.

Definition at line 136 of file ILList.C.

References append(), and clear().

Here is the call graph for this function:

◆ operator=() [2/2]

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

Move assignment.

Definition at line 148 of file ILList.C.

References clear().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator>>

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

Read from Istream, discarding existing contents.


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