Private Member Functions | Private Attributes | Friends

flopc::Constant_floor Class Reference

Inheritance diagram for flopc::Constant_floor:
flopc::Constant_base

List of all members.

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.

Detailed Description

Definition at line 83 of file MP_constant.cpp.


Constructor & Destructor Documentation

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

Definition at line 86 of file MP_constant.cpp.


Member Function Documentation

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

Implements flopc::Constant_base.

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:
c is a constant
Returns:
the floor or "truncated" value of the parameter
  • floor(3.7) evaluates to 3.0

Referenced by evaluate().


Member Data Documentation

Definition at line 90 of file MP_constant.cpp.

Referenced by evaluate().


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