plll  1.0
plll::arithmetic::expressions::Expression< Context_, Data, Op > Class Template Reference

Represents an expression. More...

#include <arithmetic-expressions.hpp>

Inheritance diagram for plll::arithmetic::expressions::Expression< Context_, Data, Op >:

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.
 

Detailed Description

template<typename Context_, class Data, template< typename, typename > class Op>
class plll::arithmetic::expressions::Expression< Context_, Data, Op >

Represents an expression.

Template Parameters
Context_The arithmetic context describing the result of the expression.
DataData for the operation.
OpThe operand template template class. Describes how the data should be turned into the result.

Definition at line 1782 of file arithmetic-expressions.hpp.


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