ICG 2
Electric Boogaloo
IntegerValue.hpp
Go to the documentation of this file.
1 #ifndef INTEGER_VALUE_H
2 #define INTEGER_VALUE_H
3 
4 #include "NumericValue.hpp"
5 
9 class IntegerValue : public NumericValue {
10 
11  public:
12 
17  IntegerValue(long long value);
18 
23  double getFloatingPointValue() const;
24 
29  long long getIntegerValue() const;
30 
34  void print(std::ostream &s) const;
35 
39  std::string toString() const;
40 
41  inline ValueType getValueType() const override { return ValueType::INTEGER; }
42 
43 
44  private:
45  long long value;
46 };
47 #endif
IntegerValue is a Value that represents an integer value on the right-hand-side of an equation.
Definition: IntegerValue.hpp:9
long long getIntegerValue() const
Definition: IntegerValue.cpp:28
ValueType getValueType() const override
Definition: IntegerValue.hpp:41
std::string toString() const
Definition: IntegerValue.cpp:16
double getFloatingPointValue() const
Definition: IntegerValue.cpp:23
void print(std::ostream &s) const
Definition: IntegerValue.cpp:11
IntegerValue(long long value)
Definition: IntegerValue.cpp:6
Definition: NumericValue.hpp:8
ValueType
Definition: Value.hpp:28