ICG 2
Electric Boogaloo
PointerValue.hpp
Go to the documentation of this file.
1 #ifndef POINTER_VALUE_H
2 #define POINTER_VALUE_H
3 
4 #include "Value/Value.hpp"
5 
8 class PointerValue : public Value {
9 
10  public:
11 
16  PointerValue(void * value);
17 
22  void * getPointer();
23 
27  void print(std::ostream &s) const override;
28 
32  std::string toString() const override;
33 
34  inline ValueType getValueType() const override { return ValueType::POINTER; }
35 
36  private:
37  void* value;
38 };
39 #endif
Definition: PointerValue.hpp:8
void * getPointer()
Definition: PointerValue.cpp:10
std::string toString() const override
Definition: PointerValue.cpp:20
void print(std::ostream &s) const override
Definition: PointerValue.cpp:15
ValueType getValueType() const override
Definition: PointerValue.hpp:34
PointerValue(void *value)
Definition: PointerValue.cpp:5
Value is an abstract base-class that represents a value on the right-hand-side of an assignment.
Definition: Value.hpp:9
ValueType
Definition: Value.hpp:28