RealExpression Class Reference

#include <RealExpression.hpp>

Inheritance diagram for RealExpression:

Inheritance graph
[legend]
Collaboration diagram for RealExpression:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Type {
  boolean, boundary, boundaryCondition, boundaryConditionList,
  domain, field, fieldlist, function,
  ifstreamexpression, integrated, integratedOperator, insideExpression,
  insideListExpression, istreamexpression, istreamExpressionList, linearExp,
  mesh, multiLinearExp, multiLinearExpSum, multiLinearForm,
  multiLinearFormSum, ofstreamexpression, option, ostreamexpression,
  ostreamExpressionList, pdeEquation, pdeOperator, pdeOperatorSum,
  pdeProblem, problem, real, scene,
  solver, solverOptions, string, subOption,
  subOptionList, testFunctionList, unknown, unknownList,
  variationalFormula, variationalBilinearOperator, variationalLinearOperator, variationalDirichlet,
  vector3
}

Public Member Functions

virtual ReferenceCounting
< RealExpression
value ()=0
const real_t & realValue () const
real_t & realValue ()
 RealExpression (const RealExpression &e)
 RealExpression ()
virtual ~RealExpression ()
const Expression::Typetype () const
 return the type.
virtual void execute ()=0

Protected Member Functions

virtual std::istream & _get (std::istream &is)
 Read *this to the input is.

Static Protected Member Functions

static Expression::Type getType (ReferenceCounting< Expression > e1, ReferenceCounting< Expression > e2)

Protected Attributes

real_t __realValue
 The value.

Private Member Functions

std::ostream & put (std::ostream &os) const
 Writes *this to the output os.

Friends

std::ostream & operator<< (std::ostream &os, const Expression &e)
 this function allows to output expressions.
std::istream & operator>> (std::istream &is, Expression &e)
 this function allows to read expressions from streams


Detailed Description

Definition at line 34 of file RealExpression.hpp.


Member Enumeration Documentation

enum Expression::Type [inherited]

Enumerator:
boolean 
boundary 
boundaryCondition 
boundaryConditionList 
domain 
field 
fieldlist 
function 
ifstreamexpression 
integrated 
integratedOperator 
insideExpression 
insideListExpression 
istreamexpression 
istreamExpressionList 
linearExp 
mesh 
multiLinearExp 
multiLinearExpSum 
multiLinearForm 
multiLinearFormSum 
ofstreamexpression 
option 
ostreamexpression 
ostreamExpressionList 
pdeEquation 
pdeOperator 
pdeOperatorSum 
pdeProblem 
problem 
real 
scene 
solver 
solverOptions 
string 
subOption 
subOptionList 
testFunctionList 
unknown 
unknownList 
variationalFormula 
variationalBilinearOperator 
variationalLinearOperator 
variationalDirichlet 
vector3 

Reimplemented in IFStreamExpression, OFStreamExpression, and UnknownExpression.

Definition at line 42 of file Expression.hpp.

00042              {
00043     boolean,
00044     boundary,
00045     boundaryCondition,
00046     boundaryConditionList,
00047 
00048     domain,
00049 
00050     field,
00051     fieldlist,
00052     function,
00053 
00054     ifstreamexpression,
00055     integrated,
00056     integratedOperator,
00057     insideExpression,
00058     insideListExpression,
00059     istreamexpression,
00060     istreamExpressionList,
00061 
00062     linearExp,
00063 
00064     mesh,
00065     multiLinearExp,
00066     multiLinearExpSum,
00067     multiLinearForm,
00068     multiLinearFormSum,
00069 
00070     ofstreamexpression,
00071     option,
00072     ostreamexpression,
00073     ostreamExpressionList,
00074 
00075     pdeEquation,
00076     pdeOperator,
00077     pdeOperatorSum,
00078     pdeProblem,
00079     problem,
00080 
00081     real,
00082 
00083     scene,
00084     solver,
00085     solverOptions,
00086     string,
00087     subOption,
00088     subOptionList,
00089 
00090     testFunctionList,
00091 
00092     unknown,
00093     unknownList,
00094 
00095     variationalFormula,
00096     variationalBilinearOperator,
00097     variationalLinearOperator,
00098     variationalDirichlet,
00099     vector3
00100   };


Constructor & Destructor Documentation

RealExpression::RealExpression ( const RealExpression e  )  [inline]

Definition at line 73 of file RealExpression.hpp.

00074     : Expression(e),
00075       __realValue(e.__realValue)
00076   {
00077     ;
00078   }

RealExpression::RealExpression (  )  [inline]

Definition at line 80 of file RealExpression.hpp.

00081     : Expression(Expression::real),
00082       __realValue(0)
00083   {
00084     ;
00085   }

virtual RealExpression::~RealExpression (  )  [inline, virtual]

Definition at line 87 of file RealExpression.hpp.

00088   {
00089     ;
00090   }


Member Function Documentation

std::ostream& RealExpression::put ( std::ostream &  os  )  const [inline, private, virtual]

Writes *this to the output os.

Implements Expression.

Definition at line 42 of file RealExpression.hpp.

References realValue().

00043   {
00044     os << this->realValue();
00045     return os;
00046   }

Here is the call graph for this function:

virtual ReferenceCounting<RealExpression> RealExpression::value (  )  [pure virtual]

const real_t& RealExpression::realValue (  )  const [inline]

Read only access to the real value

Todo:
Return type should use traits.
Returns:
the value of the expression.

Definition at line 57 of file RealExpression.hpp.

References __realValue.

Referenced by put().

00058   {
00059     return __realValue;
00060   }

real_t& RealExpression::realValue (  )  [inline]

Access to the real value

Todo:
Return type should use traits.
Returns:
the value of the expression.

Definition at line 68 of file RealExpression.hpp.

References __realValue.

00069   {
00070     return __realValue;
00071   }

static Expression::Type Expression::getType ( ReferenceCounting< Expression e1,
ReferenceCounting< Expression e2 
) [inline, static, protected, inherited]

Traits conversion of types.

Todo:
IMPLEMENT IT.

Definition at line 112 of file Expression.hpp.

References Expression::real.

00114   {
00115     return Expression::real;
00116   }

virtual std::istream& Expression::_get ( std::istream &  is  )  [inline, protected, virtual, inherited]

Read *this to the input is.

Reimplemented in IStreamExpressionList, and RealExpressionVariable.

Definition at line 122 of file Expression.hpp.

References ErrorHandler::normal.

00123   {
00124     throw ErrorHandler(__FILE__,__LINE__,
00125                        "operator >> is not supported for this expression",
00126                        ErrorHandler::normal);
00127     return is;
00128   }

const Expression::Type& Expression::type (  )  const [inline, inherited]

return the type.

Reimplemented in FunctionExpression.

Definition at line 132 of file Expression.hpp.

References Expression::__type.

Referenced by MeshExpressionExtract::execute().

00133   {
00134     return __type;
00135   }

virtual void Expression::execute (  )  [pure virtual, inherited]

Executes the expression.

Implemented in BooleanExpressionValue, BooleanExpressionUnaryOperator< F >, BooleanExpressionCompareOperator< B >, BooleanExpressionBinaryOperator< B >, BoundaryConditionExpressionDirichlet, BoundaryConditionExpressionFourrier, BoundaryConditionExpressionNeumann, BoundaryConditionListExpressionSet, BoundaryExpressionList, BoundaryExpressionPOVRay, BoundaryExpressionReferences, BoundaryExpressionSurfaceMesh, DomainExpressionAnalytic, DomainExpressionSet, DomainExpressionUndefined, DomainExpressionVariable, FieldExpression, FieldExpressionList, FunctionExpressionBinaryOperation, FunctionExpressionCFunction, FunctionExpressionComposed, FunctionExpressionConstant, FunctionExpressionConvection, FunctionExpressionDerivative, FunctionExpressionDG, FunctionExpressionDomainCharacteristic, FunctionExpressionFEM, FunctionExpressionIntegrate, FunctionExpressionLinearBasis, FunctionExpressionMeshCharacteristic, FunctionExpressionMeshReferences, FunctionExpressionNormalComponent, FunctionExpressionNot, FunctionExpressionObjectCharacteristic, FunctionExpressionRead, FunctionExpressionSpectral, FunctionExpressionUnaryMinus, FunctionExpressionValue, FunctionExpressionVariable, IFStreamExpressionUndefined, IFStreamExpressionValue, IFStreamExpressionVariable, InsideExpression, InsideListExpression, IntegratedExpressionUnknown, IntegratedExpressionTest, IntegratedExpressionFunctionExpression, IntegratedOperatorExpressionOrderZero, IntegratedOperatorExpressionGrad, IntegratedOperatorExpressionDx, IStreamExpression, IStreamExpressionList, LinearExpressionElementary, LinearExpressionElementaryTimesFunction, LinearExpressionElementaryTimesReal, MeshExpressionStructured, MeshExpressionSpectral, MeshExpressionSurface, MeshExpressionOctree, MeshExpressionVariable, MeshExpressionRead, MeshExpressionSimplify, MeshExpressionExtract, MeshExpressionTetrahedrize, MeshExpressionTetrahedrizeDomain, MeshExpressionUndefined, MeshExpressionTransform, MeshExpressionPeriodic, MultiLinearExpression, MultiLinearExpressionSum, MultiLinearFormExpression, MultiLinearFormSumExpression, OFStreamExpressionUndefined, OFStreamExpressionValue, OFStreamExpressionVariable, OptionExpression, OStreamExpression, OStreamExpressionList, PDEEquationExpression, PDEOperatorExpression, PDEOperatorSumExpression, PDEProblemExpressionDescription, PDESystemExpression, RealExpressionValue, RealExpressionBoolean, RealExpressionVariable, RealExpressionFunctionEvaluate, RealExpressionIntegrate, RealExpressionMinMax, RealExpressionPreIncrement, RealExpressionPostIncrement, RealExpressionPreDecrement, RealExpressionPostDecrement, RealExpressionCFunction, RealExpressionUnaryOperator< F >, RealExpressionBinaryOperator< B >, SceneExpressionPOVRay, SceneExpressionVariable, SceneExpressionTransform, SceneExpressionUndefined, SolutionExpressionVariable, SolutionExpressionUndefined, SolverExpression, SolverOptionsExpression, StringExpressionValue, StringExpressionConcat, StringExpressionReal, StringExpressionVariable, SubOptionExpressionString, SubOptionExpressionReal, SubOptionListExpression, TestFunctionExpressionList, UnknownExpression, UnknownListExpressionSet, VariationalDirichletListExpression, VariationalFormulaExpression, VariationalBilinearOperatorExpression, VariationalLinearOperatorExpression, VariationalProblemExpression, Vector3ExpressionValue, Vector3ExpressionTimesScalar, Vector3ExpressionVariable, and Vector3ExpressionBinaryOperator< B >.

Referenced by FunctionExpressionMeshReferences::ReferencesSet::execute().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Expression e 
) [friend, inherited]

this function allows to output expressions.

Definition at line 143 of file Expression.hpp.

00144   {
00145     return e.put(os);
00146   }

std::istream& operator>> ( std::istream &  is,
Expression e 
) [friend, inherited]

this function allows to read expressions from streams

Definition at line 149 of file Expression.hpp.

00150   {
00151     return e._get(is);
00152   }


Member Data Documentation

real_t RealExpression::__realValue [protected]


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

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