flopc::Expression_sum Class Reference

Inheritance diagram for flopc::Expression_sum:

Inheritance graph
[legend]
Collaboration diagram for flopc::Expression_sum:

Collaboration graph
[legend]
List of all members.

Private Member Functions

 Expression_sum (const MP_domain &d, const MP_expression &e)
void operator() () const
double level () const
void generate (const MP_domain &domain, vector< Constant > multiplicators, GenerateFunctor &f, double m) const
void insertVariables (set< MP_variable * > &v) const

Private Attributes

double the_sum
MP_domain D
MP_expression exp

Friends

MP_expression sum (const MP_domain &d, const MP_expression &e)

Detailed Description

Definition at line 111 of file MP_expression.cpp.


Constructor & Destructor Documentation

flopc::Expression_sum::Expression_sum ( const MP_domain d,
const MP_expression e 
) [inline, private]

Definition at line 114 of file MP_expression.cpp.


Member Function Documentation

void flopc::Expression_sum::generate ( const MP_domain domain,
vector< Constant multiplicators,
GenerateFunctor f,
double  m 
) const [inline, private, virtual]

Implements flopc::MP_expression_base.

Definition at line 124 of file MP_expression.cpp.

References D, and exp.

void flopc::Expression_sum::insertVariables ( set< MP_variable * > &  v  )  const [inline, private, virtual]

Implements flopc::MP_expression_base.

Definition at line 131 of file MP_expression.cpp.

References exp.

double flopc::Expression_sum::level (  )  const [inline, private, virtual]

Implements flopc::MP_expression_base.

Definition at line 119 of file MP_expression.cpp.

References D, flopc::MP_domain::Forall(), and the_sum.

void flopc::Expression_sum::operator() (  )  const [inline, private, virtual]

Implements flopc::Functor.

Definition at line 116 of file MP_expression.cpp.

References exp, and the_sum.


Friends And Related Function Documentation

MP_expression sum ( const MP_domain d,
const MP_expression e 
) [friend]

forms an expression by summing an expression over a domain.

Note:
it's expected that the expression is defined over that domain.

Definition at line 171 of file MP_expression.cpp.


Member Data Documentation

MP_domain flopc::Expression_sum::D [private]

Definition at line 136 of file MP_expression.cpp.

Referenced by generate(), and level().

MP_expression flopc::Expression_sum::exp [private]

Definition at line 137 of file MP_expression.cpp.

Referenced by generate(), insertVariables(), and operator()().

double flopc::Expression_sum::the_sum [mutable, private]

Definition at line 135 of file MP_expression.cpp.

Referenced by level(), and operator()().


The documentation for this class was generated from the following file:
Generated on Fri Aug 26 03:03:30 2011 for FLOPC++ by  doxygen 1.4.7