PssMathParser  1.0.0
Parser of mathemathical expressions
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
PssMathParser::Argument Class Reference

Derived from Entity, used for all that is not Operator. More...

#include <pssmathparser.h>

Inheritance diagram for PssMathParser::Argument:
[legend]
Collaboration diagram for PssMathParser::Argument:
[legend]

Public Member Functions

 Argument (const string &a_name, EntityType a_type=EntityType::Argument, int a_ivalue=0, double a_dvalue=0)
 Constructor, only constructor list. More...
 
void setDoubleValue (const double a_dvalue)
 Setter of the double value. More...
 
double getDoubleValue () const
 Getter of the double value. More...
 
void setIntValue (const int a_ivalue)
 Setter of the int value. More...
 
int getIntValue ()
 Getter of the int value. More...
 
- Public Member Functions inherited from PssMathParser::Entity
 Entity (const string &a_name, const EntityType a_type=EntityType::None)
 Constructor, just a constructor list. More...
 
 ~Entity ()
 Destructor.
 
const EntitygetEntity () const
 Returns the pointer to the Entity object. More...
 
EntityType entityType () const
 Get the EntityType of the object. More...
 

Private Attributes

double m_dvalue
 
int m_ivalue
 

Additional Inherited Members

- Protected Attributes inherited from PssMathParser::Entity
string m_name
 
EntityType m_type
 

Detailed Description

Derived from Entity, used for all that is not Operator.

This class can represent variables, constants or plain numbers (here refered to as userConstants).

Constructor & Destructor Documentation

Argument::Argument ( const string &  a_name,
EntityType  a_type = EntityType::Argument,
int  a_ivalue = 0,
double  a_dvalue = 0 
)

Constructor, only constructor list.

Parameters
a_nameName key of the Operator, part of the Entity parent class
a_typeType of the Operator, part of the Entity parent class
a_ivalueInteger value of the Argument
a_dvalueDouble value of the Argument

Member Function Documentation

double Argument::getDoubleValue ( ) const

Getter of the double value.

Returns
double Return m_dvalue
int Argument::getIntValue ( )

Getter of the int value.

Returns
int Return m_ivalue;
void Argument::setDoubleValue ( const double  a_dvalue)

Setter of the double value.

Parameters
a_dvalueValue to be setted the m_dvalue to
void Argument::setIntValue ( const int  a_ivalue)

Setter of the int value.

Parameters
a_ivalueValue to be setted the m_ivalue to

Member Data Documentation

double PssMathParser::Argument::m_dvalue
private

Double value of the argument

int PssMathParser::Argument::m_ivalue
private

Integer value of the argument


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