FLOPC++
Private Member Functions | Friends | List of all members
flopc::Constant_minus Class Reference
Inheritance diagram for flopc::Constant_minus:
Inheritance graph
[legend]
Collaboration diagram for flopc::Constant_minus:
Collaboration graph
[legend]

Private Member Functions

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

Friends

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

Additional Inherited Members

- Public Member Functions inherited from flopc::Constant_base
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 Member Functions inherited from flopc::Constant_base
 Constant_base ()
 
virtual ~Constant_base ()
 
- Protected Attributes inherited from flopc::Constant_exp
Constant left
 
Constant right
 
- Protected Attributes inherited from flopc::Constant_base
int count
 

Detailed Description

Definition at line 150 of file MP_constant.cpp.

Constructor & Destructor Documentation

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

Definition at line 154 of file MP_constant.cpp.

Member Function Documentation

double flopc::Constant_minus::evaluate ( ) const
inlineprivatevirtual

Implements flopc::Constant_base.

Definition at line 155 of file MP_constant.cpp.

Friends And Related Function Documentation

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

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

Parameters
afirst constant
bsecond constant
Returns
the difference between the constants.

Definition at line 160 of file MP_constant.cpp.

Constant operator- ( MP_index a,
MP_index b 
)
friend

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

Definition at line 164 of file MP_constant.cpp.


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