flopc::Constant_max_2 Class Reference

Inheritance diagram for flopc::Constant_max_2:

Inheritance graph
[legend]
Collaboration diagram for flopc::Constant_max_2:

Collaboration graph
[legend]
List of all members.

Private Member Functions

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

Friends

Constant maximum (const Constant &a, const Constant &b)
 Returns the larger of two constants.

This is used in the formation of an expression.


Detailed Description

Definition at line 115 of file MP_constant.cpp.


Constructor & Destructor Documentation

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

Definition at line 118 of file MP_constant.cpp.


Member Function Documentation

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

Implements flopc::Constant_base.

Definition at line 119 of file MP_constant.cpp.

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


Friends And Related Function Documentation

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

Returns the larger of two constants.

This is used in the formation of an expression.

Parameters:
a first constant
b second constant
Returns:
the greater of the two numbers
  • maximum(3.6,3.7) evaluates to 3.7

Definition at line 124 of file MP_constant.cpp.


The documentation for this class was generated from the following file:
Generated on Fri Aug 26 03:03:17 2011 for FLOPC++ by  doxygen 1.4.7