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

Private Member Functions

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

Private Attributes

Constant C
 

Friends

Constant ceil (const Constant &c)
 The ceiling integral value of the input constant.This is used in the formation of an expression. It is used to "round up" 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 75 of file MP_constant.cpp.

Constructor & Destructor Documentation

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

Definition at line 78 of file MP_constant.cpp.

Member Function Documentation

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

Implements flopc::Constant_base.

Definition at line 79 of file MP_constant.cpp.

References flopc::ceil().

Friends And Related Function Documentation

Constant ceil ( const Constant c)
friend

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

Parameters
cis a constant
Returns
the ceiling or "rounded up" of the parameter
  • ceil(3.2) evaluates to 4.0

Definition at line 84 of file MP_constant.cpp.

Member Data Documentation

Constant flopc::Constant_ceil::C
private

Definition at line 82 of file MP_constant.cpp.


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