35 |
real_t __realValue; |
real_t __realValue; |
36 |
|
|
37 |
private: |
private: |
38 |
std::ostream& put(std::ostream& os) |
std::ostream& put(std::ostream& os) const |
39 |
{ |
{ |
|
this->execute(); |
|
40 |
os << this->realValue(); |
os << this->realValue(); |
41 |
return os; |
return os; |
42 |
} |
} |
44 |
public: |
public: |
45 |
virtual ReferenceCounting<RealExpression> value() = 0; |
virtual ReferenceCounting<RealExpression> value() = 0; |
46 |
|
|
47 |
/*! |
/** |
48 |
Returns the value of the expression. |
* Read only access to the real value |
49 |
\todo Return type should use traits. |
* |
50 |
|
* @todo Return type should use traits. |
51 |
|
* @return the value of the expression. |
52 |
*/ |
*/ |
53 |
inline real_t realValue() |
inline const real_t& realValue() const |
54 |
|
{ |
55 |
|
return __realValue; |
56 |
|
} |
57 |
|
|
58 |
|
/** |
59 |
|
* Access to the real value |
60 |
|
* |
61 |
|
* @todo Return type should use traits. |
62 |
|
* @return the value of the expression. |
63 |
|
*/ |
64 |
|
inline real_t& realValue() |
65 |
{ |
{ |
66 |
return __realValue; |
return __realValue; |
67 |
} |
} |