Information Class Reference

#include <Information.hpp>

Inheritance diagram for Information:

Inheritance graph
[legend]
Collaboration diagram for Information:

Collaboration graph
[legend]

List of all members.

Public Member Functions

ConstReferenceCounting< MeshgetMesh ()
void setMesh (ConstReferenceCounting< Mesh > mesh)
void unsetMesh ()
bool usesMesh () const
ReferenceCounting
< UnknownListExpression
getUnknownList ()
void setUnknownList (ReferenceCounting< UnknownListExpression > ul)
void unsetUnknownList ()
bool usesUnknownList () const
ConstReferenceCounting< ScenegetScene ()
void setScene (ConstReferenceCounting< Scene > scene)
void unsetScene ()
bool usesScene () const
void setCoarseMesh (const bool &b)
const bool & coarseMesh () const
 Information ()
 Information (const Information &I)
 ~Information ()

Static Public Member Functions

static Informationinstance ()
static void create ()
static void destroy ()

Static Protected Attributes

static Information__pInstance

Private Attributes

std::stack
< ConstReferenceCounting< Mesh > > 
__mesh
 if not NULL contains the Mesh which is used in the instruction
ConstReferenceCounting< Scene__scene
 the last defined sceneExpression.
ReferenceCounting
< UnknownListExpression
__unknownListExpression
 The current Unknown list.
bool __coarseMesh


Detailed Description

Definition at line 40 of file Information.hpp.


Constructor & Destructor Documentation

Information::Information (  ) 

Constructor

Definition at line 115 of file Information.cpp.

00116   : __scene(0),
00117     __unknownListExpression(0),
00118     __coarseMesh(true)
00119 {
00120   ;
00121 }

Information::Information ( const Information I  ) 

Copy constructor

Parameters:
I an Information

Definition at line 124 of file Information.cpp.

00125   : __mesh(I.__mesh),
00126     __scene(I.__scene),
00127     __unknownListExpression(I.__unknownListExpression),
00128     __coarseMesh(I.__coarseMesh)
00129 {
00130   ;
00131 }

Information::~Information (  ) 

Destructor

Definition at line 134 of file Information.cpp.

00135 {
00136   ;
00137 }


Member Function Documentation

ConstReferenceCounting< Mesh > Information::getMesh (  ) 

Read only access to the mesh on the top of the stack

Returns:
latest mesh

Definition at line 27 of file Information.cpp.

References __mesh, and ASSERT.

Referenced by FunctionExpressionConvection::execute().

00028 {
00029   ASSERT(not __mesh.empty());
00030   return __mesh.top();
00031 }

void Information::setMesh ( ConstReferenceCounting< Mesh mesh  ) 

void Information::unsetMesh (  ) 

bool Information::usesMesh (  )  const

Checks if a mesh is in use

Returns:
true if the stack is not empty

Definition at line 46 of file Information.cpp.

References __mesh.

00047 {
00048   return not __mesh.empty();
00049 }

ReferenceCounting< UnknownListExpression > Information::getUnknownList (  ) 

void Information::setUnknownList ( ReferenceCounting< UnknownListExpression ul  ) 

Set the unknown list expression

Parameters:
ul the unknown list

Definition at line 82 of file Information.cpp.

References __unknownListExpression.

Referenced by SolverExpression::execute().

00083 {
00084   __unknownListExpression = u;
00085 }

void Information::unsetUnknownList (  ) 

Unset the unknown list expression

Definition at line 95 of file Information.cpp.

References __unknownListExpression.

Referenced by SolverExpression::execute().

00096 {
00097   __unknownListExpression = 0;
00098 }

bool Information::usesUnknownList (  )  const

Checks if an unknown list expression is in use

Returns:
true if an unknown list is in use

Definition at line 88 of file Information.cpp.

References __unknownListExpression.

00089 {
00090   return __unknownListExpression != 0;
00091 }

ConstReferenceCounting< Scene > Information::getScene (  ) 

Access to the scene

Returns:
__scene

Definition at line 52 of file Information.cpp.

References __scene.

Referenced by FunctionExpressionObjectCharacteristic::execute().

00053 {
00054   return __scene;
00055 }

void Information::setScene ( ConstReferenceCounting< Scene scene  ) 

Set a scene

Parameters:
scene a given Scene

Definition at line 58 of file Information.cpp.

References __scene.

Referenced by SolverExpression::__setScene(), SceneExpressionPOVRay::execute(), and InstructionUsingScene::execute().

00059 {
00060   __scene = scene;
00061 }

void Information::unsetScene (  ) 

Unset the scene

Definition at line 70 of file Information.cpp.

References __scene.

00071 {
00072   __scene = 0;
00073 }

bool Information::usesScene (  )  const

Checks if a Scene is in use

Returns:
true if __scene in non null

Definition at line 64 of file Information.cpp.

References __scene.

00065 {
00066   return __scene != 0;
00067 }

void Information::setCoarseMesh ( const bool &  b  ) 

Sets the coarse mesh parameter

Parameters:
b 

Definition at line 109 of file Information.cpp.

References __coarseMesh.

Referenced by InstructionCoarseMesh::execute().

00110 {
00111   __coarseMesh = coarse;
00112 }

const bool & Information::coarseMesh (  )  const

read-only access to __coarseMesh

Returns:
__coarseMesh

Definition at line 102 of file Information.cpp.

References __coarseMesh.

00103 {
00104   return __coarseMesh;
00105 }

static Information & StaticBase< Information >::instance (  )  [inline, static, inherited]

static void StaticBase< Information >::create (  )  [inline, static, inherited]

Creates __pInstance in Embedding class.

Definition at line 55 of file StaticBase.hpp.

Referenced by ThreadStaticCenter::ThreadStaticCenter().

00056   {
00057     __pInstance = new EmbeddingClass();
00058   }

static void StaticBase< Information >::destroy (  )  [inline, static, inherited]

Destroyes __autoInstanciated in Embedding class.

Definition at line 64 of file StaticBase.hpp.

Referenced by ThreadStaticCenter::~ThreadStaticCenter().

00065   {
00066     delete __pInstance;
00067   }


Member Data Documentation

if not NULL contains the Mesh which is used in the instruction

Definition at line 45 of file Information.hpp.

Referenced by getMesh(), setMesh(), unsetMesh(), and usesMesh().

the last defined sceneExpression.

Definition at line 48 of file Information.hpp.

Referenced by getScene(), setScene(), unsetScene(), and usesScene().

The current Unknown list.

Definition at line 51 of file Information.hpp.

Referenced by getUnknownList(), setUnknownList(), unsetUnknownList(), and usesUnknownList().

bool Information::__coarseMesh [private]

Choose which algorithm is used for surface mesh generation. If true, does not use mesh intersection algorithm.

Definition at line 55 of file Information.hpp.

Referenced by coarseMesh(), and setCoarseMesh().

Information * StaticBase< Information >::__pInstance [static, protected, inherited]

The static variable

Definition at line 37 of file StaticBase.hpp.


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

Generated on Wed Nov 19 00:07:47 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6