Public Member Functions | Static Public Member Functions | Static Private Attributes
cellModeller Class Reference

A static collection of cell models, and a means of looking them up. More...

Collaboration diagram for cellModeller:
Collaboration graph
[legend]

Public Member Functions

 cellModeller ()
 Construct from central "cellModels" file. More...
 
 ~cellModeller ()
 Destructor. More...
 

Static Public Member Functions

static const cellModellookup (const word &)
 Look up a model by name and return a pointer to the model or NULL. More...
 
static const cellModellookup (const label i)
 Look up a model by index and return a pointer to the model or NULL. More...
 

Static Private Attributes

static PtrList< cellModelmodels_
 PtrList of models. More...
 
static List< cellModel * > modelPtrs_
 List of model pointers. More...
 
static HashTable< const cellModel * > modelDictionary_
 HashTable of model pointers. More...
 

Detailed Description

A static collection of cell models, and a means of looking them up.

Source files

Definition at line 52 of file cellModeller.H.

Constructor & Destructor Documentation

◆ cellModeller()

Construct from central "cellModels" file.

Definition at line 33 of file cellModeller.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, cellModeller::modelDictionary_, cellModeller::modelPtrs_, cellModeller::models_, and Foam::name().

Here is the call graph for this function:

◆ ~cellModeller()

Destructor.

Definition at line 82 of file cellModeller.C.

Member Function Documentation

◆ lookup() [1/2]

const Foam::cellModel * lookup ( const word name)
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 Foam::name().

Referenced by shapeToCell::combine(), rotatedBoxToCell::combine(), blockMesh::createCells(), cellMatcher::model(), shapeToCell::shapeToCell(), multiDirRefinement::splitOffHex(), tetCell::tetCellShape(), and vtkTopo::vtkTopo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookup() [2/2]

static const cellModel* lookup ( const label  i)
inlinestatic

Look up a model by index and return a pointer to the model or NULL.

Definition at line 83 of file cellModeller.H.

References cellModeller::modelPtrs_.

Field Documentation

◆ models_

Foam::PtrList< Foam::cellModel > models_
staticprivate

PtrList of models.

Definition at line 57 of file cellModeller.H.

Referenced by cellModeller::cellModeller().

◆ modelPtrs_

Foam::List< Foam::cellModel * > modelPtrs_
staticprivate

List of model pointers.

Definition at line 60 of file cellModeller.H.

Referenced by cellModeller::cellModeller(), and cellModeller::lookup().

◆ modelDictionary_

Foam::HashTable< const Foam::cellModel * > modelDictionary_
staticprivate

HashTable of model pointers.

Definition at line 63 of file cellModeller.H.

Referenced by cellModeller::cellModeller().


The documentation for this class was generated from the following files: