ICG 2
Electric Boogaloo
Public Member Functions | List of all members
NumericValue Class Referenceabstract

#include <NumericValue.hpp>

Inheritance diagram for NumericValue:
Value FloatingPointValue IntegerValue

Public Member Functions

virtual double getFloatingPointValue () const =0
 
virtual long long getIntegerValue () const =0
 
- Public Member Functions inherited from Value
virtual ~Value ()
 
virtual void print (std::ostream &s) const =0
 
virtual std::string toString () const =0
 
virtual ValueType getValueType () const =0
 

Additional Inherited Members

- Public Types inherited from Value
enum  ValueType { STRING , INTEGER , FLOATING_POINT , POINTER }
 

Member Function Documentation

◆ getFloatingPointValue()

virtual double NumericValue::getFloatingPointValue ( ) const
pure virtual

Get the value of this NumericValue as a floating point value.

Returns
the value as a double.

Implemented in FloatingPointValue, and IntegerValue.

◆ getIntegerValue()

virtual long long NumericValue::getIntegerValue ( ) const
pure virtual

Get the value of this IntegerValue as an integer.

Returns
the value as a long long int.

Implemented in FloatingPointValue, and IntegerValue.


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