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

Private Member Functions

 Constant_floor (const Constant &c)
double evaluate () const

Private Attributes

Constant C

Friends

Constant floor (const Constant &c)
 The floor integral value of the input constant.This is used in the formation of an expression. It is used to "truncate" a numeric constant which is potentially non-integer.

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_base
 Constant_base ()
virtual ~Constant_base ()
- Protected Attributes inherited from flopc::Constant_base
int count

Detailed Description

Definition at line 83 of file MP_constant.cpp.

Constructor & Destructor Documentation

flopc::Constant_floor::Constant_floor ( const Constant c)
inlineprivate

Definition at line 86 of file MP_constant.cpp.

Member Function Documentation

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

Definition at line 87 of file MP_constant.cpp.

References C, and floor.

Friends And Related Function Documentation

Constant floor ( const Constant c)
friend

The floor integral value of the input constant.This is used in the formation of an expression. It is used to "truncate" a numeric constant which is potentially non-integer.

Parameters
cis a constant
Returns
the floor or "truncated" value of the parameter
  • floor(3.7) evaluates to 3.0

Definition at line 92 of file MP_constant.cpp.

Referenced by evaluate().

Member Data Documentation

Constant flopc::Constant_floor::C
private

Definition at line 90 of file MP_constant.cpp.

Referenced by evaluate().


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