|
|
|
LList Class Template ReferenceInheritance diagram for LList:![]() ![]() Detailed Descriptiontemplate<class LListBase, class T>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| 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 LListBase::iterator | LListBase_iterator |
| typedef LListBase::const_iterator | LListBase_const_iterator |
Public Member Functions | |
| LList () | |
| Null construct. | |
| LList (T a) | |
| Construct given initial T. | |
| LList (Istream &) | |
| Construct from Istream. | |
| LList (const LList< LListBase, 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 | operator= (const LList< LListBase, T > &) |
Friends | |
| class | iterator |
| class | const_iterator |
| Istream & | operator>> (Istream &, LList< LListBase, T > &) |
| Ostream & | operator (Ostream &, const LList< LListBase, T > &) |
Classes | |
| class | const_iterator |
| class | iterator |
| struct | link |
| Link structure. More... | |
| typedef T value_type |
| typedef T& reference |
Type that can be used for storing into value_type.
objects.
Reimplemented in LPtrList, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
| typedef const T& const_reference |
Type that can be used for storing into constant.
LList::value_type objects.
Reimplemented in LPtrList, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
| ~LList | ( | ) |
| T& first | ( | ) | [inline] |
Return the first entry added.
Reimplemented in LPtrList, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
Definition at line 142 of file LList.H.
Referenced by LIFOStack::LIFOStack(), and FIFOStack< Foam::word >::top().
Here is the caller graph for this function:

| const T& first | ( | ) | const [inline] |
Return const access to the first entry added.
Reimplemented in LPtrList, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
| T& last | ( | ) | [inline] |
Return the last entry added.
Reimplemented in LPtrList, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
Definition at line 154 of file LList.H.
Referenced by FIFOStack< Foam::word >::FIFOStack().
Here is the caller graph for this function:

| const T& last | ( | ) | const [inline] |
Return const access to the last entry added.
Reimplemented in LPtrList, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
| void insert | ( | const T & | a | ) | [inline] |
Add at head of list.
Definition at line 169 of file LList.H.
Referenced by LIFOStack::empty().
Here is the caller graph for this function:

| void append | ( | const T & | a | ) | [inline] |
Add at tail of list.
Definition at line 175 of file LList.H.
Referenced by FIFOStack< Foam::word >::empty().
Here is the caller graph for this function:

| T removeHead | ( | ) | [inline] |
Remove and return head.
Definition at line 181 of file LList.H.
Referenced by LIFOStack::push(), and FIFOStack< Foam::word >::push().
Here is the caller graph for this function:

| T remove | ( | iterator & | it | ) | [inline] |
| void clear | ( | ) |
Delete contents of list.
Reimplemented in LPtrList, DictionaryBase< Foam::DLPtrList< T >, T >, DictionaryBase< Foam::DLList< T * >, T >, LPtrList< Foam::SLListBase, T >, LPtrList< Foam::DLListBase, T >, and LPtrList< Foam::SLListBase, Foam::Reactioneaction< Foam::sutherlandTransportutherlandTransport< specieThermo< janafThermo< perfectGas > > > > >.
friend class iterator [friend] |
friend class const_iterator [friend] |