plll
1.0
|
Wraps a variable to behave similarly to an Expression<>
object.
More...
#include <arithmetic-expressions.hpp>
Public Member Functions | |
void | assignTo (typename Context_::Type &x) const |
Assigns the value to the destination variable. More... | |
const Context_::Type & | evaluate () const |
"Evaluates" (returns) the stored value. More... | |
operator const typename Context_::Type & () const | |
Cast operator. More... | |
unsigned long | precision () const |
Returns the precision of the variable. More... | |
Wrapper (const typename Context_::Type &value) | |
Initializes the wrapper object with the given variable. | |
Wraps a variable to behave similarly to an Expression<>
object.
The wrapper object stores a reference to the original variable.
Definition at line 71 of file arithmetic-expressions.hpp.
|
inline |
Assigns the value to the destination variable.
x | The varible where to store the value. |
Definition at line 114 of file arithmetic-expressions.hpp.
|
inline |
"Evaluates" (returns) the stored value.
Definition at line 124 of file arithmetic-expressions.hpp.
|
inline |
Cast operator.
Definition at line 104 of file arithmetic-expressions.hpp.
|
inline |
Returns the precision of the variable.
Only available for real types.
Definition at line 94 of file arithmetic-expressions.hpp.