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

Base class for math expression entities. More...

#include <pssmathparser.h>

Inheritance diagram for PssMathParser::Entity:
[legend]

Public Member Functions

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

Protected Attributes

string m_name
 
EntityType m_type
 

Detailed Description

Base class for math expression entities.

This class can be Operator, Argument or Generator. Array of these entities represents the reverse polish notation of the mathemathical expression and the succesive steps in producing the final result.

Constructor & Destructor Documentation

Entity::Entity ( const string &  a_name,
const EntityType  a_type = EntityType::None 
)

Constructor, just a constructor list.

Parameters
a_nameName of the Entity
a_typeEntityType of the Entity

Member Function Documentation

EntityType Entity::entityType ( ) const

Get the EntityType of the object.

Returns
EntityType
const Entity * Entity::getEntity ( ) const

Returns the pointer to the Entity object.

Used in child classes to access its parent Entity members.

Returns
*Entity Returns this

Member Data Documentation

string PssMathParser::Entity::m_name
protected

Name of func or arg

EntityType PssMathParser::Entity::m_type
protected

Type of Entity, from enum class


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