GEGELATI
constant.h
1
37#ifndef CONSTANT_H
38#define CONSTANT_H
39
40#include <cstdint>
41
42namespace Data {
47 struct Constant
48 {
52 int32_t value;
53
57 operator int32_t() const;
58
62 operator double() const;
63
67 bool operator==(const Constant& other) const;
68
72 bool operator!=(const Constant& other) const;
73 };
74} // namespace Data
75
76#endif // CONSTANT_H
Definition: array2DWrapper.h:44
Data type used in Program::Program to define constant values, accessible to Instructions,...
Definition: constant.h:48
bool operator==(const Constant &other) const
Comparison operator for Constant.
Definition: constant.cpp:49
bool operator!=(const Constant &other) const
Comparison operator for Constant.
Definition: constant.cpp:54
int32_t value
the value of the Constant
Definition: constant.h:52