OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

LIFOStack Class Template Reference

Inheritance diagram for LIFOStack:

Inheritance graph
[legend]
Collaboration diagram for LIFOStack:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 59 of file LIFOStack.H.


Public Member Functions

 LIFOStack ()
 Construct null.
 LIFOStack (T a)
 Construct given initial T.
 LIFOStack (Istream &is)
 Construct from Istream.
T 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.
T pop ()
 Pop the top element.

Constructor & Destructor Documentation

LIFOStack (  )  [inline]

Construct null.

Definition at line 69 of file LIFOStack.H.

LIFOStack ( T  a  )  [inline]

Construct given initial T.

Definition at line 73 of file LIFOStack.H.

LIFOStack ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 79 of file LIFOStack.H.

References LList::first().

Here is the call graph for this function:


Member Function Documentation

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:

bool empty (  )  const [inline]

Is the stack empty.

Definition at line 99 of file LIFOStack.H.

References LList::insert().

Here is the call graph for this function:

void push ( const T &  a  )  [inline]

Push an element onto the stack.

Definition at line 108 of file LIFOStack.H.

References LList::removeHead().

Here is the call graph for this function:

T pop (  )  [inline]

Pop the top element.

Definition at line 114 of file LIFOStack.H.


The documentation for this class was generated from the following file:
  • src/OpenFOAM/containers/LinkedLists/user/LIFOStack/LIFOStack.H
Copyright © 2000-2007 OpenCFD Ltd