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

topoSetSource Class Reference

Inheritance diagram for topoSetSource:

Inheritance graph
[legend]
Collaboration diagram for topoSetSource:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 71 of file topoSetSource.H.


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_
 Class with constructor to add usage string to table.

Classes

class  addToUsageTable
class  iNew
 Class used for the read-construction of. More...

Member Enumeration Documentation

enum setAction

Enumeration defining the valid actions.

Enumerator:
CLEAR 
NEW 
INVERT 
ADD 
DELETE 
SUBSET 
LIST 

Definition at line 78 of file topoSetSource.H.


Constructor & Destructor Documentation

topoSetSource ( const polyMesh &  mesh  ) 

Construct from components.

virtual ~topoSetSource (  )  [virtual]


Member Function Documentation

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

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

TypeName ( "topoSetSource"   ) 

Runtime type information.

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

Convert string to action.

Definition at line 151 of file topoSetSource.H.

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

Check state of stream.

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 212 of file topoSetSource.H.

References Foam::name().

Here is the call graph for this function:

autoPtr<topoSetSource> clone (  )  const [inline]

Clone.

Definition at line 238 of file topoSetSource.H.

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

Return a reference to the selected topoSetSource.

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

Return a reference to the selected topoSetSource.

const polyMesh& mesh (  )  const [inline]

Definition at line 271 of file topoSetSource.H.


Member Data Documentation

HashTable<string>* usageTablePtr_ [static, protected]

Class with constructor to add usage string to table.

Definition at line 92 of file topoSetSource.H.

Referenced by topoSetSource::iNew::operator()().

const polyMesh& mesh_ [protected]

Definition at line 120 of file topoSetSource.H.


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