Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
LList Class Reference

Template class for non-intrusive linked lists. More...

Inheritance diagram for LList:
Inheritance graph
[legend]

Classes

class  const_iterator
 
class  const_reverse_iterator
 
class  iterator
 
struct  link
 
class  reverse_iterator
 

Public Types

typedef T value_type
 
typedef Tpointer
 
typedef Treference
 
typedef label size_type
 
typedef label difference_type
 
using base_iterator = typename LListBase::iterator
 
using const_base_iterator = typename LListBase::const_iterator
 

Public Member Functions

 LList ()=default
 
 LList (const T &item)
 
 LList (T &&item)
 
 LList (Istream &is)
 
 LList (const LList< LListBase, T > &lst)
 
 LList (LList< LListBase, T > &&lst)
 
 LList (std::initializer_list< T > lst)
 
 ~LList ()
 
reference first ()
 
const_reference first () const
 
reference last ()
 
const_reference last () const
 
void insert (const T &item)
 
void insert (T &&item)
 
void append (const T &item)
 
void append (T &&item)
 
T removeHead ()
 
T remove (link *item)
 
T remove (iterator &iter)
 
void clear ()
 
void transfer (LList< LListBase, T > &lst)
 
void operator= (const LList< LListBase, T > &lst)
 
void operator= (LList< LListBase, T > &&lst)
 
void operator= (std::initializer_list< T > lst)
 
IstreamreadList (Istream &is)
 
OstreamwriteList (Ostream &os, const label shortLen=0) const
 
iterator begin ()
 
const_iterator cbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crbegin () const
 
const_iterator begin () const
 
const_reverse_iterator rbegin () const
 
const iteratorend ()
 
const const_iteratorcend () const
 
const reverse_iteratorrend ()
 
const const_reverse_iteratorcrend () const
 
const const_iteratorend () const
 
const const_reverse_iteratorrend () const
 

Public Attributes

const typedef Tconst_pointer
 
const typedef Tconst_reference
 

Friends

Istreamoperator>> (Istream &, LList< LListBase, T > &lst)
 
Ostreamoperator (Ostream &os, const LList< LListBase, T > &lst)
 

Detailed Description

Template class for non-intrusive linked lists.

Source files

Definition at line 50 of file LList.H.

Member Typedef Documentation

◆ value_type

typedef T value_type

Definition at line 81 of file LList.H.

◆ pointer

typedef T* pointer

Definition at line 84 of file LList.H.

◆ reference

typedef T& reference

Definition at line 90 of file LList.H.

◆ size_type

typedef label size_type

Definition at line 96 of file LList.H.

◆ difference_type

typedef label difference_type

Definition at line 99 of file LList.H.

◆ base_iterator

using base_iterator = typename LListBase::iterator

Definition at line 107 of file LList.H.

◆ const_base_iterator

using const_base_iterator = typename LListBase::const_iterator

Definition at line 108 of file LList.H.

Constructor & Destructor Documentation

◆ LList() [1/7]

LList ( )
default

◆ LList() [2/7]

LList ( const T item)
inlineexplicit

Definition at line 164 of file LList.H.

◆ LList() [3/7]

LList ( T &&  item)
inlineexplicit

Definition at line 170 of file LList.H.

◆ LList() [4/7]

LList ( Istream is)
explicit

Definition at line 29 of file LListIO.C.

◆ LList() [5/7]

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

Definition at line 26 of file LList.C.

◆ LList() [6/7]

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

Definition at line 38 of file LList.C.

◆ LList() [7/7]

LList ( std::initializer_list< T lst)

Definition at line 47 of file LList.C.

◆ ~LList()

~LList ( )

Definition at line 61 of file LList.C.

Member Function Documentation

◆ first() [1/2]

reference first ( )
inline

Definition at line 195 of file LList.H.

Referenced by FIFOStack< writeData * >::bottom(), LPtrList::first(), Foam::polyMeshZipUpCells(), and LIFOStack< T >::top().

Here is the caller graph for this function:

◆ first() [2/2]

const_reference first ( ) const
inline

Definition at line 201 of file LList.H.

◆ last() [1/2]

reference last ( )
inline

Definition at line 207 of file LList.H.

Referenced by LIFOStack< T >::bottom(), LPtrList::last(), Foam::polyMeshZipUpCells(), and FIFOStack< writeData * >::top().

Here is the caller graph for this function:

◆ last() [2/2]

const_reference last ( ) const
inline

Definition at line 213 of file LList.H.

◆ insert() [1/2]

void insert ( const T item)
inline

Definition at line 220 of file LList.H.

Referenced by LList< Foam::chemPointISAT< CompType, ThermoType > * >::LList(), Foam::polyMeshZipUpCells(), and LIFOStack< T >::push().

Here is the caller graph for this function:

◆ insert() [2/2]

void insert ( T &&  item)
inline

Definition at line 226 of file LList.H.

◆ append() [1/2]

void append ( const T item)
inline

◆ append() [2/2]

void append ( T &&  item)
inline

Definition at line 239 of file LList.H.

◆ removeHead()

T removeHead ( )
inline

Definition at line 246 of file LList.H.

Referenced by Foam::bandCompression(), Foam::polyMeshZipUpCells(), FIFOStack< writeData * >::pop(), LIFOStack< T >::pop(), and UList< Foam::wordRe >::readList().

Here is the caller graph for this function:

◆ remove() [1/2]

T remove ( link item)
inline

Definition at line 255 of file LList.H.

◆ remove() [2/2]

T remove ( iterator iter)
inline

Definition at line 264 of file LList.H.

◆ clear()

void clear ( )

Definition at line 70 of file LList.C.

Referenced by LList< Foam::chemPointISAT< CompType, ThermoType > * >::readList().

Here is the caller graph for this function:

◆ transfer()

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

Definition at line 83 of file LList.C.

◆ operator=() [1/3]

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

Definition at line 93 of file LList.C.

◆ operator=() [2/3]

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

Definition at line 105 of file LList.C.

◆ operator=() [3/3]

void operator= ( std::initializer_list< T lst)

Definition at line 114 of file LList.C.

◆ readList()

Foam::Istream & readList ( Istream is)

Definition at line 38 of file LListIO.C.

◆ writeList()

Foam::Ostream & writeList ( Ostream os,
const label  shortLen = 0 
) const

Definition at line 116 of file LListIO.C.

◆ begin() [1/2]

iterator begin ( )
inline

Definition at line 493 of file LList.H.

Referenced by FixedList< Type, 3 >::FixedList(), and FixedList< Type, 3 >::operator=().

Here is the caller graph for this function:

◆ cbegin()

const_iterator cbegin ( ) const
inline

Definition at line 499 of file LList.H.

Referenced by averageCondition::calc().

Here is the caller graph for this function:

◆ rbegin() [1/2]

reverse_iterator rbegin ( )
inline

Definition at line 505 of file LList.H.

◆ crbegin()

const_reverse_iterator crbegin ( ) const
inline

Definition at line 511 of file LList.H.

Referenced by LList< Foam::chemPointISAT< CompType, ThermoType > * >::rbegin().

Here is the caller graph for this function:

◆ begin() [2/2]

const_iterator begin ( ) const
inline

Definition at line 517 of file LList.H.

◆ rbegin() [2/2]

const_reverse_iterator rbegin ( ) const
inline

Definition at line 523 of file LList.H.

◆ end() [1/2]

const iterator& end ( )
inline

Definition at line 530 of file LList.H.

Referenced by namesList< solutionEntry >::find().

Here is the caller graph for this function:

◆ cend()

const const_iterator& cend ( ) const
inline

Definition at line 536 of file LList.H.

Referenced by LList< Foam::chemPointISAT< CompType, ThermoType > * >::end().

Here is the caller graph for this function:

◆ rend() [1/2]

const reverse_iterator& rend ( )
inline

Definition at line 542 of file LList.H.

◆ crend()

const const_reverse_iterator& crend ( ) const
inline

Definition at line 548 of file LList.H.

Referenced by LList< Foam::chemPointISAT< CompType, ThermoType > * >::rend().

Here is the caller graph for this function:

◆ end() [2/2]

const const_iterator& end ( ) const
inline

Definition at line 554 of file LList.H.

◆ rend() [2/2]

const const_reverse_iterator& rend ( ) const
inline

Definition at line 560 of file LList.H.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
LList< LListBase, T > &  lst 
)
friend

◆ operator

Ostream& operator ( Ostream os,
const LList< LListBase, T > &  lst 
)
friend

Member Data Documentation

◆ const_pointer

const typedef T* const_pointer

Definition at line 87 of file LList.H.

◆ const_reference

const typedef T& const_reference

Definition at line 93 of file LList.H.


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