FreeFOAM The Cross-Platform CFD Toolkit
SLList< T > Class Template Reference

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

#include <OpenFOAM/SLList.H>


Detailed Description

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

Non-intrusive singly-linked list.

Definition at line 48 of file SLList.H.

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

List of all members.

Public Member Functions

 SLList ()
 Null construct.
 SLList (T a)
 Construct given initial T.
 SLList (Istream &is)
 Construct from Istream.
- Public Member Functions inherited from LList< SLListBase, T >
 LList ()
 Null construct.
 LList (T a)
 Construct given initial T.
 LList (Istream &)
 Construct from Istream.
 LList (const LList< SLListBase, T > &)
 Construct as copy.
 ~LList ()
T & first ()
 Return the first entry added.
const T & first () const
 Return const access to the first entry added.
T & last ()
 Return the last entry added.
const T & last () const
 Return const access to the last entry added.
void insert (const T &a)
 Add at head of list.
void append (const T &a)
 Add at tail of list.
T removeHead ()
 Remove and return head.
T remove (link *l)
 Remove and return element.
T remove (iterator &it)
 Remove and return element specified by iterator.
void clear ()
 Delete contents of list.
void transfer (LList< SLListBase, T > &)
 Transfer the contents of the argument into this List.
void operator= (const LList< SLListBase, T > &)
- Public Member Functions inherited from SLListBase
 SLListBase ()
 Null construct.
 SLListBase (link *)
 Construct given initial entry.
 ~SLListBase ()
label size () const
 Return number of elements in list.
bool empty () const
 Return true if the list is empty.
void insert (link *)
 Add at head of list.
void append (link *)
 Add at tail of list.
void transfer (SLListBase &)
 Transfer the contents of the argument into this List.
iterator begin ()
const iterator & end ()
const_iterator cbegin () const
const const_iterator & cend () const
const_iterator begin () const
const const_iterator & end () const

Additional Inherited Members

- Public Types inherited from LList< SLListBase, T >
typedef T value_type
 Type of values the LList contains.
typedef T & reference
 Type that can be used for storing into value_type.
typedef const T & const_reference
 Type that can be used for storing into constant.
typedef label size_type
 The type that can represent the size of a LList.
typedef SLListBase::iterator LListBase_iterator
typedef SLListBase::const_iterator LListBase_const_iterator

Constructor & Destructor Documentation

SLList ( )
inline

Null construct.

Definition at line 58 of file SLList.H.

SLList ( T  a)
inline

Construct given initial T.

Definition at line 62 of file SLList.H.

SLList ( Istream &  is)
inline

Construct from Istream.

Definition at line 68 of file SLList.H.


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