FLOPC++
Private Member Functions | Private Attributes | Friends | List of all members
flopc::Constant_pos Class Reference
Inheritance diagram for flopc::Constant_pos:
Inheritance graph
[legend]
Collaboration diagram for flopc::Constant_pos:
Collaboration graph
[legend]

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.. More...
 

Additional Inherited Members

- Public Member Functions inherited from flopc::Constant_base
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 57 of file MP_constant.cpp.

Constructor & Destructor Documentation

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

Definition at line 60 of file MP_constant.cpp.

Member Function Documentation

double flopc::Constant_pos::evaluate ( ) const
inlineprivatevirtual

Implements flopc::Constant_base.

Definition at line 61 of file MP_constant.cpp.

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
can 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

Definition at line 71 of file MP_constant.cpp.

Member Data Documentation

Constant flopc::Constant_pos::C
private

Definition at line 69 of file MP_constant.cpp.


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