Private Member Functions | Friends

flopc::Constant_min_2 Class Reference

Inheritance diagram for flopc::Constant_min_2:
flopc::Constant_exp flopc::Constant_base

List of all members.

Private Member Functions

 Constant_min_2 (const Constant &i, const Constant &j)
double evaluate () const

Friends

Constant minimum (const Constant &a, const Constant &b)
 Returns the smaller of two constants.This is used in the formation of an expression.

Detailed Description

Definition at line 102 of file MP_constant.cpp.


Constructor & Destructor Documentation

flopc::Constant_min_2::Constant_min_2 ( const Constant i,
const Constant j 
) [inline, private]

Definition at line 105 of file MP_constant.cpp.


Member Function Documentation

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

Implements flopc::Constant_base.

Definition at line 106 of file MP_constant.cpp.

References flopc::Constant_exp::left, and flopc::Constant_exp::right.


Friends And Related Function Documentation

Constant minimum ( const Constant a,
const Constant b 
) [friend]

Returns the smaller of two constants.This is used in the formation of an expression.

Parameters:
a first constant
b second constant
Returns:
the lesser of the two values.
  • minimum(3.6,3.7) evaluates to 3.6

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