plll
1.0
|
Represents an expression. More...
#include <arithmetic-expressions.hpp>
Public Member Functions | |
void | assignTo (typename Context::Type &x) const |
Evaluates the expression into the given object. | |
const Context & | context () const |
Allows to access the expression's context. This function only compiles if a context is stored in the expression! | |
const Data & | data () const |
Allows to access the expression's data. | |
evaluate_type | evaluate () const |
Returns the value of the expression. | |
Expression (const Data &data, const Op< Context_, Data > &op) | |
Creates an expression from the given data and operator object. | |
Expression (const Data &data) | |
Creates an expression from the given data. The operator object is default initialized. | |
const Op< Context_, Data > & | op () const |
Allows to access the operator object. | |
operator evaluate_type () const | |
Returns the value of the expression. | |
unsigned long | precision () const |
Returns the precision of the expression. Only compiles if the expression supports this. | |
Represents an expression.
Context_ | The arithmetic context describing the result of the expression. |
Data | Data for the operation. |
Op | The operand template template class. Describes how the data should be turned into the result. |
Definition at line 1782 of file arithmetic-expressions.hpp.