OpenFOAM logo
Open Source CFD Toolkit

LIFOStack Class Template Reference

Inheritance diagram for LIFOStack:

Inheritance graph
[legend]
Collaboration diagram for LIFOStack:

Collaboration graph
[legend]
List of all members.

template<class T>
class Foam::LIFOStack< T >


Public Member Functions

 LIFOStack ()
 Construct null.
 LIFOStack (T a)
 Construct given initial T.
 LIFOStack (Istream &is)
 Construct from Istream.
top () const
 Return a copy of the top element.
bool empty () const
 Is the stack empty.
void push (const T &a)
 Push an element onto the stack.
pop ()
 Pop the top element.

Constructor & Destructor Documentation

LIFOStack  )  [inline]
 

Construct null.

Definition at line 69 of file LIFOStack.H.

LIFOStack a  )  [inline]
 

Construct given initial T.

Definition at line 73 of file LIFOStack.H.

References Foam::T().

Here is the call graph for this function:

LIFOStack Istream is  )  [inline]
 

Construct from Istream.

Definition at line 79 of file LIFOStack.H.

References Foam::T().

Here is the call graph for this function:


Member Function Documentation

bool empty  )  const [inline]
 

Is the stack empty.

Definition at line 99 of file LIFOStack.H.

References insert().

Here is the call graph for this function:

T pop  )  [inline]
 

Pop the top element.

Definition at line 114 of file LIFOStack.H.

void push const T &  a  )  [inline]
 

Push an element onto the stack.

Definition at line 108 of file LIFOStack.H.

T top  )  const [inline]
 

Return a copy of the top element.

Definition at line 90 of file LIFOStack.H.

References Foam::size().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org