1#ifndef SXEVAL_ENCASPULATED_VARIABLE_HPP
2#define SXEVAL_ENCASPULATED_VARIABLE_HPP
28 const std::string& name) : _get(get), _name(name) {}
47 inline std::string
toString()
const override {
return _name; }
51 const std::function<T(
void)> _get;
52 const std::string _name;
The EncapsulatedVariable class represents a variable that can be encapsulated in an unaccessible Obje...
Definition EncapsulatedVariable.hpp:18
std::string toString() const override
String representation of the encapsulated variable.
Definition EncapsulatedVariable.hpp:47
void retrieve()
Retrieve the value of the encapsulated variable.
Definition EncapsulatedVariable.hpp:40
EncapsulatedVariable(const std::function< T(void)> get, const std::string &name)
Default constructor.
Definition EncapsulatedVariable.hpp:27
T & getResult() override
Get a reference to the variable.
Definition EncapsulatedVariable.hpp:35
The IOperand class is an interface for operands.
Definition IOperand.hpp:16
Definition AOperation.hpp:8