ULPtrList< LListBase, T > Class Template Reference

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

Inheritance diagram for ULPtrList< LListBase, T >:
Collaboration diagram for ULPtrList< LListBase, T >:

Classes

class  const_iterator
 An STL-conforming const_iterator. More...
 
class  iterator
 An STL-conforming iterator. More...
 

Public Types

typedef Treference
 Type that can be used for storing into ULPtrList::value_type. More...
 
typedef Tconst_reference
 Type that can be used for storing into constant. More...
 
typedef LListBase::iterator LListBase_iterator
 
typedef LListBase::const_iterator LListBase_const_iterator
 
- Public Types inherited from LList< LListBase, T * >
typedef T * value_type
 Type of values the LList contains. More...
 
typedef T * & reference
 Type that can be used for storing into 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 LList. More...
 
typedef LListBase::iterator LListBase_iterator
 
typedef LListBase::const_iterator LListBase_const_iterator
 

Public Member Functions

 ULPtrList ()
 Null construct. More...
 
 ULPtrList (T *a)
 Construct given initial T. More...
 
 ULPtrList (const ULPtrList &)
 Copy constructor. More...
 
 ULPtrList (ULPtrList &&)
 Move constructor. More...
 
Tfirst ()
 Return the first entry added. More...
 
const Tfirst () const
 Return const access to the first entry added. More...
 
Tlast ()
 Return the last entry added. More...
 
const Tlast () const
 Return const access to the last entry added. More...
 
void operator= (const ULPtrList< LListBase, T > &)
 Assignment operator. More...
 
void operator= (ULPtrList< LListBase, T > &&)
 Move assignment operator. More...
 
- Public Member Functions inherited from LList< LListBase, T * >
 LList ()
 Null construct. More...
 
 LList (T * a)
 Construct given initial T. More...
 
 LList (Istream &)
 Construct from Istream. More...
 
 LList (const LList< LListBase, T * > &)
 Copy constructor. More...
 
 LList (LList< LListBase, T * > &&)
 Move constructor. More...
 
 LList (std::initializer_list< T * >)
 Construct from an initialiser list. More...
 
 ~LList ()
 Destructor. More...
 
T * & first ()
 Return the first entry added. More...
 
const T * & first () const
 Return const access to the first entry added. More...
 
T * & last ()
 Return the last entry added. More...
 
const T * & last () const
 Return const access to the last entry added. More...
 
void insert (const T * &a)
 Add at head of list. More...
 
void append (const T * &a)
 Add at tail of list. More...
 
T * removeHead ()
 Remove and return head. More...
 
T * remove (link *l)
 Remove and return element. More...
 
T * remove (iterator &it)
 Remove and return element specified by iterator. More...
 
void clear ()
 Delete contents of list. More...
 
void transfer (LList< LListBase, T * > &)
 Transfer the contents of the argument into this List. More...
 
void operator= (const LList< LListBase, T * > &)
 Assignment operator. More...
 
void operator= (LList< LListBase, T * > &&)
 Move assignment operator. More...
 
void operator= (std::initializer_list< T * >)
 Assignment to an initialiser list. More...
 
iterator begin ()
 
const_iterator begin () const
 
const iteratorend ()
 
const const_iteratorend () const
 
const_iterator cbegin () const
 
const const_iteratorcend () const
 

Friends

class iterator
 
class const_iterator
 
Ostreamoperator (Ostream &, const ULPtrList< LListBase, T > &)
 

Detailed Description

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

Template class for non-intrusive linked PtrLists.

Source files

Definition at line 62 of file ULPtrList.H.

Member Typedef Documentation

◆ reference

typedef T& reference

Type that can be used for storing into ULPtrList::value_type.

objects.

Definition at line 139 of file ULPtrList.H.

◆ const_reference

typedef T& const_reference

Type that can be used for storing into constant.

ULPtrList::value_type objects.

Definition at line 143 of file ULPtrList.H.

◆ LListBase_iterator

typedef LListBase::iterator LListBase_iterator

Definition at line 148 of file ULPtrList.H.

◆ LListBase_const_iterator

typedef LListBase::const_iterator LListBase_const_iterator

Definition at line 181 of file ULPtrList.H.

Constructor & Destructor Documentation

◆ ULPtrList() [1/4]

ULPtrList ( )
inline

Null construct.

Definition at line 81 of file ULPtrList.H.

◆ ULPtrList() [2/4]

ULPtrList ( T a)
inline

Construct given initial T.

Definition at line 85 of file ULPtrList.H.

◆ ULPtrList() [3/4]

ULPtrList ( const ULPtrList< LListBase, T > &  )

Copy constructor.

◆ ULPtrList() [4/4]

ULPtrList ( ULPtrList< LListBase, T > &&  )

Move constructor.

Member Function Documentation

◆ first() [1/2]

T& first ( )
inline

Return the first entry added.

Definition at line 102 of file ULPtrList.H.

References LList< LListBase, T >::first().

Here is the call graph for this function:

◆ first() [2/2]

const T& first ( ) const
inline

Return const access to the first entry added.

Definition at line 108 of file ULPtrList.H.

References LList< LListBase, T >::first().

Here is the call graph for this function:

◆ last() [1/2]

T& last ( )
inline

Return the last entry added.

Definition at line 114 of file ULPtrList.H.

References LList< LListBase, T >::last().

Here is the call graph for this function:

◆ last() [2/2]

const T& last ( ) const
inline

Return const access to the last entry added.

Definition at line 120 of file ULPtrList.H.

References LList< LListBase, T >::last().

Here is the call graph for this function:

◆ operator=() [1/2]

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

Assignment operator.

Definition at line 50 of file ULPtrList.C.

◆ operator=() [2/2]

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

Move assignment operator.

Definition at line 63 of file ULPtrList.C.

Friends And Related Function Documentation

◆ iterator

friend class iterator
friend

Definition at line 72 of file ULPtrList.H.

◆ const_iterator

friend class const_iterator
friend

Definition at line 75 of file ULPtrList.H.

◆ operator

Ostream& operator ( Ostream ,
const ULPtrList< LListBase, T > &   
)
friend

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