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

FIFOStack Class Template Reference

Inheritance diagram for FIFOStack:

Inheritance graph
[legend]
Collaboration diagram for FIFOStack:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 59 of file FIFOStack.H.


Public Member Functions

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

Constructor & Destructor Documentation

FIFOStack (  )  [inline]

Construct null.

Definition at line 69 of file FIFOStack.H.

FIFOStack ( T  a  )  [inline]

Construct given initial T.

Definition at line 73 of file FIFOStack.H.

FIFOStack ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 79 of file FIFOStack.H.


Member Function Documentation

T top (  )  const [inline]

Return a copy of the top element.

Definition at line 90 of file FIFOStack.H.

T bottom (  )  const [inline]

Return a copy of the bottom element.

Definition at line 96 of file FIFOStack.H.

bool empty (  )  const [inline]

Is the stack empty.

Definition at line 105 of file FIFOStack.H.

void push ( const T &  a  )  [inline]

Push an element onto the stack.

Definition at line 114 of file FIFOStack.H.

T pop (  )  [inline]

Pop the bottom element.

Definition at line 120 of file FIFOStack.H.


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