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

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

Detailed Description

Definition at line 88 of file MP_constant.cpp.

Constructor & Destructor Documentation

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

Definition at line 91 of file MP_constant.cpp.

Member Function Documentation

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

Implements flopc::Constant_base.

Definition at line 92 of file MP_constant.cpp.

References flopc::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 97 of file MP_constant.cpp.

Member Data Documentation

Constant flopc::Constant_floor::C
private

Definition at line 95 of file MP_constant.cpp.


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