ICG 2
Electric Boogaloo
DataTypes
include
Value
Value.hpp
Go to the documentation of this file.
1
#ifndef VALUE_H
2
#define VALUE_H
3
4
#include <string>
5
9
class
Value
{
10
11
public
:
12
16
virtual
~Value
() {};
17
21
virtual
void
print
(std::ostream &s)
const
= 0;
22
26
virtual
std::string
toString
()
const
= 0;
27
28
enum
ValueType
{
29
STRING
,
30
INTEGER
,
31
FLOATING_POINT
,
32
POINTER
33
};
34
35
virtual
ValueType
getValueType
()
const
= 0;
36
37
};
38
#endif
Value
Value is an abstract base-class that represents a value on the right-hand-side of an assignment.
Definition:
Value.hpp:9
Value::print
virtual void print(std::ostream &s) const =0
Value::ValueType
ValueType
Definition:
Value.hpp:28
Value::POINTER
@ POINTER
Definition:
Value.hpp:32
Value::INTEGER
@ INTEGER
Definition:
Value.hpp:30
Value::STRING
@ STRING
Definition:
Value.hpp:29
Value::FLOATING_POINT
@ FLOATING_POINT
Definition:
Value.hpp:31
Value::getValueType
virtual ValueType getValueType() const =0
Value::toString
virtual std::string toString() const =0
Value::~Value
virtual ~Value()
Definition:
Value.hpp:16
Generated by
1.9.1