A static collection of cell models, and a means of looking them up. More...
#include <OpenFOAM/cellModeller.H>
A static collection of cell models, and a means of looking them up.
Definition at line 53 of file cellModeller.H.
Public Member Functions | |
cellModeller () | |
Construct from central "cellModels" file. | |
~cellModeller () |
Static Public Member Functions | |
static const cellModel * | lookup (const word &) |
Look up a model by name and return a pointer to the model or NULL. | |
static const cellModel * | lookup (const label i) |
Look up a model by index and return a pointer to the model or NULL. |
cellModeller | ( | ) |
Construct from central "cellModels" file.
Definition at line 33 of file cellModeller.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, HashTable< T, Key, Hash >::found(), HashTable< T, Key, Hash >::insert(), Foam::name(), List< T >::setSize(), and List< T >::size().
~cellModeller | ( | ) |
Definition at line 82 of file cellModeller.C.
|
static |
Look up a model by name and return a pointer to the model or NULL.
Definition at line 91 of file cellModeller.C.
References HashTable< T, Key, Hash >::end(), and HashTable< T, Key, Hash >::find().
Referenced by cellMatcher::model(), Foam::operator>>(), shapeToCell::shapeToCell(), and tetCell::tetCellShape().
|
inlinestatic |
Look up a model by index and return a pointer to the model or NULL.
Definition at line 85 of file cellModeller.H.