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

Value is an abstract base-class that represents a value on the right-hand-side of an assignment. More...

#include <Value.hpp>

Inheritance diagram for Value:
NumericValue PointerValue StringValue FloatingPointValue IntegerValue

Public Types

enum  ValueType { STRING , INTEGER , FLOATING_POINT , POINTER }
 

Public Member Functions

virtual ~Value ()
 
virtual void print (std::ostream &s) const =0
 
virtual std::string toString () const =0
 
virtual ValueType getValueType () const =0
 

Detailed Description

Value is an abstract base-class that represents a value on the right-hand-side of an assignment.

Member Enumeration Documentation

◆ ValueType

Enumerator
STRING 
INTEGER 
FLOATING_POINT 
POINTER 

Constructor & Destructor Documentation

◆ ~Value()

virtual Value::~Value ( )
inlinevirtual

Destroy the Value.

Member Function Documentation

◆ getValueType()

virtual ValueType Value::getValueType ( ) const
pure virtual

◆ print()

virtual void Value::print ( std::ostream &  s) const
pure virtual

Print a representation of this Value to the given stream.

Implemented in StringValue, PointerValue, FloatingPointValue, and IntegerValue.

◆ toString()

virtual std::string Value::toString ( ) const
pure virtual

Get a string representation of this Value.

Implemented in StringValue, PointerValue, FloatingPointValue, and IntegerValue.


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