GEGELATI

Loading...
Searching...
No Matches
constant.h
1
38#ifndef CONSTANT_H
39#define CONSTANT_H
40
41#include <cstdint>
42
43namespace Data {
48 struct Constant
49 {
53 double value;
54
58 operator int32_t() const;
59
63 operator double() const;
64
68 bool operator==(const Constant& other) const;
69
73 bool operator!=(const Constant& other) const;
74 };
75} // namespace Data
76
77#endif // CONSTANT_H
Data::PrimitiveTypeArray2D
DataHandler for 2D arrays of primitive types.
Definition primitiveTypeArray2D.h:69
Data
Definition array2DWrapper.h:44
Data::Constant
Data type used in Program::Program to define constant values, accessible to Instructions,...
Definition constant.h:49
Data::Constant::operator==
bool operator==(const Constant &other) const
Comparison operator for Constant.
Definition constant.cpp:50
Data::Constant::operator!=
bool operator!=(const Constant &other) const
Comparison operator for Constant.
Definition constant.cpp:55
Data::Constant::value
double value
the value of the Constant
Definition constant.h:53