Public Member Functions | List of all members
FIFOStack< T > Class Template Reference

A FIFO stack based on a singly-linked list. More...

Inheritance diagram for FIFOStack< T >:
Inheritance graph
[legend]
Collaboration diagram for FIFOStack< T >:
Collaboration graph
[legend]

Public Member Functions

T top () const
 
T bottom () const
 
void push (const T &element)
 
void push (T &&element)
 
T pop ()
 
- Public Member Functions inherited from LList
 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
 

Additional Inherited Members

- Public Types inherited from LList
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 Attributes inherited from LList
const typedef Tconst_pointer
 
const typedef Tconst_reference
 

Detailed Description

template<class T>
class Foam::FIFOStack< T >

A FIFO stack based on a singly-linked list.

Stack operations are push(), pop(), top(), bottom().

Definition at line 45 of file FIFOStack.H.

Member Function Documentation

◆ top()

T top ( ) const
inline

Definition at line 60 of file FIFOStack.H.

◆ bottom()

T bottom ( ) const
inline

Definition at line 66 of file FIFOStack.H.

◆ push() [1/2]

void push ( const T element)
inline

◆ push() [2/2]

void push ( T &&  element)
inline

Definition at line 78 of file FIFOStack.H.

◆ pop()

T pop ( )
inline

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