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

topoSetSource Class Reference

Base class of a source for a topoSet. More...

Inheritance diagram for topoSetSource:
Collaboration diagram for topoSetSource:

List of all members.


Classes

class  addToUsageTable
 Class with constructor to add usage string to table. More...
class  iNew
 Class used for the read-construction of. More...

Public Types

enum  setAction {
  CLEAR, NEW, INVERT, ADD,
  DELETE, SUBSET, LIST
}
 Enumeration defining the valid actions. More...

Public Member Functions

 TypeName ("topoSetSource")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, topoSetSource, word,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
 declareRunTimeSelectionTable (autoPtr, topoSetSource, istream,(const polyMesh &mesh, Istream &is),(mesh, is))
 topoSetSource (const polyMesh &mesh)
 Construct from components.
autoPtr< topoSetSource > clone () const
 Clone.
virtual ~topoSetSource ()
const polyMesh & mesh () const
virtual void applyToSet (const setAction action, topoSet &) const =0

Static Public Member Functions

static setAction toAction (const word &actionName)
 Convert string to action.
static Istream & checkIs (Istream &is)
 Check state of stream.
static const string & usage (const word &name)
static autoPtr< topoSetSource > New (const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
 Return a reference to the selected topoSetSource.
static autoPtr< topoSetSource > New (const word &topoSetSourceType, const polyMesh &mesh, Istream &is)
 Return a reference to the selected topoSetSource.

Protected Member Functions

void addOrDelete (topoSet &set, const label cellI, const bool) const
 Add (if bool) cellI to set or delete cellI from set.

Protected Attributes

const polyMesh & mesh_

Static Protected Attributes

static HashTable< string > * usageTablePtr_ = NULL
 A table of usage strings.

Detailed Description

Base class of a source for a topoSet.

Implementer has to modify the given set (see applyToSet) according to its function and the setAction (one of add/delete/new)

Source files

Definition at line 59 of file topoSetSource.H.


Member Enumeration Documentation

enum setAction

Enumeration defining the valid actions.

Enumerator:
CLEAR 
NEW 
INVERT 
ADD 
DELETE 
SUBSET 
LIST 

Definition at line 66 of file topoSetSource.H.


Constructor & Destructor Documentation

topoSetSource ( const polyMesh &  mesh  ) 

Construct from components.

Definition at line 159 of file topoSetSource.C.

~topoSetSource (  )  [virtual]

Definition at line 167 of file topoSetSource.C.


Member Function Documentation

void addOrDelete ( topoSet &  set,
const label  cellI,
const bool  add 
) const [protected]

Add (if bool) cellI to set or delete cellI from set.

Definition at line 139 of file topoSetSource.C.

TypeName ( "topoSetSource"   ) 

Runtime type information.

static setAction toAction ( const word &  actionName  )  [inline, static]

Convert string to action.

Definition at line 140 of file topoSetSource.H.

Foam::Istream & checkIs ( Istream &  is  )  [static]

Check state of stream.

Definition at line 120 of file topoSetSource.C.

declareRunTimeSelectionTable ( autoPtr  ,
topoSetSource  ,
word  ,
(const polyMesh &mesh, const dictionary &dict)  ,
(mesh, dict)   
)

declareRunTimeSelectionTable ( autoPtr  ,
topoSetSource  ,
istream  ,
(const polyMesh &mesh, Istream &is)  ,
(mesh, is)   
)

static const string& usage ( const word &  name  )  [inline, static]

Definition at line 201 of file topoSetSource.H.

autoPtr<topoSetSource> clone (  )  const [inline]

Clone.

Definition at line 227 of file topoSetSource.H.

autoPtr< topoSetSource > New ( const word &  topoSetSourceType,
const polyMesh &  mesh,
const dictionary &  dict 
) [static]

Return a reference to the selected topoSetSource.

Definition at line 36 of file topoSetSource.C.

References Foam::defineRunTimeSelectionTable(), Foam::defineTypeNameAndDebug(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and mesh.

Here is the call graph for this function:

autoPtr< topoSetSource > New ( const word &  topoSetSourceType,
const polyMesh &  mesh,
Istream &  is 
) [static]

Return a reference to the selected topoSetSource.

Definition at line 65 of file topoSetSource.C.

const polyMesh& mesh (  )  const [inline]

Definition at line 260 of file topoSetSource.H.

References topoSetSource::mesh_.


Member Data Documentation

Foam::HashTable< Foam::string > * usageTablePtr_ = NULL [static, protected]

A table of usage strings.

Definition at line 80 of file topoSetSource.H.

Referenced by addToUsageTable::addToUsageTable(), and addToUsageTable::~addToUsageTable().

const polyMesh& mesh_ [protected]

Definition at line 109 of file topoSetSource.H.

Referenced by topoSetSource::mesh().


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