FLOPC++
Private Member Functions | Friends | List of all members
flopc::Constant_plus Class Reference
Inheritance diagram for flopc::Constant_plus:
flopc::Constant_exp flopc::Constant_base

Private Member Functions

 Constant_plus (const Constant &i, const Constant &j)
double evaluate () const

Friends

Constant operator+ (const Constant &a, const Constant &b)
 Returns the sum of two constants.This is used in the formation of an expression.
Constant operator+ (MP_index &a, MP_index &b)
 returns a Constant as a result of addition of two MP_index values.

Additional Inherited Members

- Public Member Functions inherited from flopc::Constant_base
virtual double evaluate () const =0
virtual int getStage () const
virtual int stage () const
- Protected Member Functions inherited from flopc::Constant_exp
 Constant_exp (const Constant &i, const Constant &j)
- Protected Attributes inherited from flopc::Constant_exp
Constant left
Constant right

Detailed Description

Definition at line 128 of file MP_constant.cpp.

Constructor & Destructor Documentation

flopc::Constant_plus::Constant_plus ( const Constant i,
const Constant j 
)
inlineprivate

Definition at line 132 of file MP_constant.cpp.

Member Function Documentation

double flopc::Constant_plus::evaluate ( ) const
inlineprivate

Definition at line 133 of file MP_constant.cpp.

References flopc::Constant_exp::left, and flopc::Constant_exp::right.

Friends And Related Function Documentation

Constant operator+ ( const Constant a,
const Constant b 
)
friend

Returns the sum of two constants.This is used in the formation of an expression.

Parameters
afirst constant
bsecond constant
Returns
the sum of the constants.

Definition at line 138 of file MP_constant.cpp.

Constant operator+ ( MP_index a,
MP_index b 
)
friend

returns a Constant as a result of addition of two MP_index values.

Definition at line 141 of file MP_constant.cpp.


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