Private Member Functions | Private Attributes | Friends

flopc::Constant_pos Class Reference

Inheritance diagram for flopc::Constant_pos:
flopc::Constant_base

List of all members.

Private Member Functions

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

Private Attributes

Constant C

Friends

Constant pos (const Constant &c)
 for returning non-negative value of the constant.This is used in the formation of an expression. It is used to return a non-negative value..

Detailed Description

Definition at line 52 of file MP_constant.cpp.


Constructor & Destructor Documentation

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

Definition at line 55 of file MP_constant.cpp.


Member Function Documentation

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

Implements flopc::Constant_base.

Definition at line 56 of file MP_constant.cpp.

References C.


Friends And Related Function Documentation

Constant pos ( const Constant c  )  [friend]

for returning non-negative value of the constant.This is used in the formation of an expression. It is used to return a non-negative value..

Parameters:
c an imput constant
Returns:
the absolute value of the constant.
  • if the Constant is positive, it returns a positive number.
  • if the Constant is negative or zero, it returns 0.0

Member Data Documentation

Definition at line 64 of file MP_constant.cpp.

Referenced by evaluate().


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