#include <InsideExpression.hpp>


Definition at line 38 of file InsideExpression.hpp.
enum Expression::Type [inherited] |
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 };
| InsideExpression::InsideExpression | ( | const bool | inside, | |
| ReferenceCounting< Vector3Expression > | ref | |||
| ) | [inline] |
Constructor
| inside | ||
| ref |
Definition at line 109 of file InsideExpression.hpp.
00111 : Expression(Expression::insideExpression), 00112 __reference(ref), 00113 __inside(inside) 00114 { 00115 ; 00116 }
| InsideExpression::InsideExpression | ( | const InsideExpression & | IE | ) | [inline] |
Copy constructor
| IE |
Definition at line 124 of file InsideExpression.hpp.
00125 : Expression(IE), 00126 __reference(IE.__reference), 00127 __inside(IE.__inside) 00128 { 00129 ; 00130 }
| InsideExpression::~InsideExpression | ( | ) | [inline] |
| std::ostream& InsideExpression::put | ( | std::ostream & | os | ) | const [inline, private, virtual] |
Expression::put function overloading
| os |
Implements Expression.
Definition at line 53 of file InsideExpression.hpp.
References __inside, and __reference.
00054 { 00055 if (__inside) { 00056 os << "inside("; 00057 } else { 00058 os << "outside("; 00059 } 00060 os << *__reference; 00061 os << ')'; 00062 00063 return os; 00064 }
| const TinyVector<3> InsideExpression::reference | ( | ) | const [inline] |
Returns the reference
Definition at line 73 of file InsideExpression.hpp.
00074 { 00075 TinyVector<3> x; 00076 for (size_t i=0; i<3; ++i) 00077 x[i] = (*__reference).value(i); 00078 00079 return x; 00080 }
| void InsideExpression::execute | ( | ) | [inline, virtual] |
Specialization of execute
Implements Expression.
Definition at line 86 of file InsideExpression.hpp.
| const bool& InsideExpression::inside | ( | ) | const [inline] |
Returns true if one wants to caracterize the inside of the domain, false for outside
Definition at line 97 of file InsideExpression.hpp.
References __inside.
00098 { 00099 return __inside; 00100 }
| static Expression::Type Expression::getType | ( | ReferenceCounting< Expression > | e1, | |
| ReferenceCounting< Expression > | e2 | |||
| ) | [inline, static, protected, inherited] |
Traits conversion of types.
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 }
| 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 }
const bool InsideExpression::__inside [private] |
true for inside, false for outside
Definition at line 44 of file InsideExpression.hpp.
1.5.6