Private Member Functions | Private Attributes | Friends

flopc::Constant_ceil Class Reference

Inheritance diagram for flopc::Constant_ceil:
flopc::Constant_base

List of all members.

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.

Detailed Description

Definition at line 70 of file MP_constant.cpp.


Constructor & Destructor Documentation

flopc::Constant_ceil::Constant_ceil ( const Constant c  )  [inline, private]

Definition at line 73 of file MP_constant.cpp.


Member Function Documentation

double flopc::Constant_ceil::evaluate (  )  const [inline, private, virtual]

Implements flopc::Constant_base.

Definition at line 74 of file MP_constant.cpp.

References C, and 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:
c is a constant
Returns:
the ceiling or "rounded up" of the parameter
  • ceil(3.2) evaluates to 4.0

Referenced by evaluate().


Member Data Documentation

Definition at line 77 of file MP_constant.cpp.

Referenced by evaluate().


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