FLOPC++
Private Member Functions | Private Attributes | Friends | List of all members
flopc::Constant_abs Class Reference
Inheritance diagram for flopc::Constant_abs:
flopc::Constant_base

Private Member Functions

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

Private Attributes

Constant C

Friends

Constant abs (const Constant &c)
 for computing the absolute value of a constant value.This is used in the normal formation of an expression such as abs(-5)

Additional Inherited Members

- Public Member Functions inherited from flopc::Constant_base
virtual double evaluate () const =0
virtual int getStage () const
virtual int stage () const
- Protected Member Functions inherited from flopc::Constant_base
 Constant_base ()
virtual ~Constant_base ()
- Protected Attributes inherited from flopc::Constant_base
int count

Detailed Description

Definition at line 39 of file MP_constant.cpp.

Constructor & Destructor Documentation

flopc::Constant_abs::Constant_abs ( const Constant c)
inlineprivate

Definition at line 42 of file MP_constant.cpp.

Member Function Documentation

double flopc::Constant_abs::evaluate ( ) const
inlineprivate

Definition at line 43 of file MP_constant.cpp.

References C.

Friends And Related Function Documentation

Constant abs ( const Constant c)
friend

for computing the absolute value of a constant value.This is used in the normal formation of an expression such as abs(-5)

  • input is a constant. It cannot be a variable expression.
  • Returns a Constant evaluating to the absolute value of the parameter

Definition at line 48 of file MP_constant.cpp.

Member Data Documentation

Constant flopc::Constant_abs::C
private

Definition at line 46 of file MP_constant.cpp.

Referenced by evaluate().


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