ICG 2
Electric Boogaloo
Public Member Functions | List of all members
PointerValue Class Reference

#include <PointerValue.hpp>

Inheritance diagram for PointerValue:
Value

Public Member Functions

 PointerValue (void *value)
 
void * getPointer ()
 
void print (std::ostream &s) const override
 
std::string toString () const override
 
ValueType getValueType () const override
 
- Public Member Functions inherited from Value
virtual ~Value ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ PointerValue()

PointerValue::PointerValue ( void *  value)

Constructor.

Parameters
valueThe value of this PointerValue.

Member Function Documentation

◆ getPointer()

void * PointerValue::getPointer ( )

Get the value of this PointerValue.

Returns
the value of this PointerValue.

◆ getValueType()

ValueType PointerValue::getValueType ( ) const
inlineoverridevirtual

Implements Value.

◆ print()

void PointerValue::print ( std::ostream &  s) const
overridevirtual

Print this PointerValue to a stream.

Implements Value.

◆ toString()

std::string PointerValue::toString ( ) const
overridevirtual

Get a string representation of this PointerValue.

Implements Value.


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