OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

NamedEnum< Enum, nEnum > Class Template Reference

Initialise the NamedEnum HashTable from the static list of names. More...

Inheritance diagram for NamedEnum< Enum, nEnum >:
Collaboration diagram for NamedEnum< Enum, nEnum >:

List of all members.


Public Member Functions

 NamedEnum ()
 Construct from names.
Enum read (Istream &) const
 Read a word from Istream and return the corresponding.
void write (const Enum e, Ostream &) const
 Write the name representation of the enumeration to an Ostream.
const Enum operator[] (const char *name) const
 Return the enumeration element corresponding to the given name.
const Enum operator[] (const word &name) const
 Return the enumeration element corresponding to the given name.
const char * operator[] (const Enum e) const
 Return the name of the given enumeration element.
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []
template<>
const char * names []

Static Public Attributes

static const char * names [nEnum]
 The set of names corresponding to the enumeration Enum.

Detailed Description

template<class Enum, int nEnum>
class Foam::NamedEnum< Enum, nEnum >

Initialise the NamedEnum HashTable from the static list of names.

Source files

Definition at line 46 of file NamedEnum.H.


Constructor & Destructor Documentation

NamedEnum (  )  [inline]

Construct from names.

Definition at line 24 of file NamedEnum.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and NamedEnum< Enum, nEnum >::names().

Here is the call graph for this function:


Member Function Documentation

Enum read ( Istream is  )  const [inline]

Read a word from Istream and return the corresponding.

enumeration element

Definition at line 54 of file NamedEnum.C.

Referenced by Time::readDict().

Here is the caller graph for this function:

void write ( const Enum  e,
Ostream os 
) const [inline]

Write the name representation of the enumeration to an Ostream.

Definition at line 74 of file NamedEnum.C.

const Enum operator[] ( const char *  name  )  const [inline]

Return the enumeration element corresponding to the given name.

Definition at line 91 of file NamedEnum.H.

const Enum operator[] ( const word name  )  const [inline]

Return the enumeration element corresponding to the given name.

Reimplemented from HashTable< int >.

Definition at line 97 of file NamedEnum.H.

const char* operator[] ( const Enum  e  )  const [inline]

Return the name of the given enumeration element.

Definition at line 103 of file NamedEnum.H.

const char * names (  )  [inline]

Definition at line 36 of file shellSurfaces.C.

Referenced by NamedEnum< Enum, nEnum >::NamedEnum().

Here is the caller graph for this function:

const char * names (  )  [inline]

Definition at line 31 of file directions.C.

const char * names (  )  [inline]

Definition at line 46 of file slidingInterface.C.

const char * names (  )  [inline]

Definition at line 28 of file timeActivatedExplicitSource.C.

const char * names (  )  [inline]

Definition at line 23 of file phaseProperties.C.

const char * names (  )  [inline]

Definition at line 35 of file directMappedPatchBase.C.

References Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

const char * names (  )  [inline]

Definition at line 44 of file distributedTriSurfaceMesh.C.

const char * names (  )  [inline]

Definition at line 50 of file faceToCell.C.

const char * names (  )  [inline]

Definition at line 47 of file faceZoneToCell.C.

const char * names (  )  [inline]

Definition at line 49 of file pointToCell.C.

const char * names (  )  [inline]

Definition at line 48 of file cellToFace.C.

const char * names (  )  [inline]

Definition at line 51 of file pointToFace.C.

const char * names (  )  [inline]

Definition at line 49 of file cellToPoint.C.

const char * names (  )  [inline]

Definition at line 49 of file faceToPoint.C.

const char * names (  )  [inline]

Definition at line 98 of file topoSetSource.C.

const char * names (  )  [inline]

Definition at line 27 of file outputFilterOutputControl.C.

const char * names (  )  [inline]

Definition at line 27 of file Pstream.C.

const char * names (  )  [inline]

Definition at line 28 of file Time.C.

const char * names (  )  [inline]

Definition at line 40 of file Time.C.

const char * names (  )  [inline]

Definition at line 41 of file cyclicPolyPatch.C.

References Foam::addToRunTimeSelectionTable(), Foam::defineTypeNameAndDebug(), and cyclicPolyPatch::transformTypeNames.

Here is the call graph for this function:

const char * names (  )  [inline]

Definition at line 28 of file intersection.C.

const char * names (  )  [inline]

Definition at line 38 of file intersection.C.

const char * names (  )  [inline]

Definition at line 23 of file fieldAverageItem.C.

const char * names (  )  [inline]

Definition at line 33 of file fieldMinMax.C.

References Foam::defineTypeNameAndDebug().

Here is the call graph for this function:


Member Data Documentation

const char* names[nEnum] [static]

The set of names corresponding to the enumeration Enum.

Definition at line 67 of file NamedEnum.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd