SLList< T > Class Template Reference

Non-intrusive singly-linked list. More...

Inheritance diagram for SLList< T >:
Collaboration diagram for SLList< T >:

Public Member Functions

 SLList ()
 Null construct. More...
 
 SLList (T a)
 Construct given initial T. More...
 
 SLList (Istream &is)
 Construct from Istream. 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 > &)
 Construct as copy. More...
 
 ~LList ()
 Destructor. 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 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 > &)
 

Additional Inherited Members

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

Detailed Description

template<class T>
class Foam::SLList< T >

Non-intrusive singly-linked list.

Definition at line 48 of file SLList.H.

Constructor & Destructor Documentation

SLList ( )
inline

Null construct.

Definition at line 58 of file SLList.H.

SLList ( T  a)
inlineexplicit

Construct given initial T.

Definition at line 62 of file SLList.H.

SLList ( Istream is)
inlineexplicit

Construct from Istream.

Definition at line 68 of file SLList.H.


The documentation for this class was generated from the following file:
  • src/OpenFOAM/containers/LinkedLists/user/SLList.H