27 #ifndef SCHNEK_TYPES_HPP_ 28 #define SCHNEK_TYPES_HPP_ 30 #include "../exception.hpp" 32 #pragma GCC diagnostic push 33 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 35 #include <boost/variant.hpp> 37 #pragma GCC diagnostic pop 44 typedef boost::variant<int, double, std::string> ValueVariant;
47 typedef boost::variant<int*, double*, std::string*> ValuePointerVariant;
49 template<
typename vtype>
class Expression;
50 typedef std::shared_ptr<Expression<int> > pIntExpression;
51 typedef std::shared_ptr<Expression<double> > pFloatExpression;
52 typedef std::shared_ptr<Expression<std::string> > pStringExpression;
55 typedef boost::variant<pIntExpression, pFloatExpression, pStringExpression> ExpressionVariant;
66 const std::string& getMessage() {
return message; }
75 const std::string& getMessage() {
return message; }
85 std::string getVarName() {
return varName; }
116 #endif // SCHNEK_TYPES_HPP_ Definition: types.hpp:107
Definition: types.hpp:101
Definition: exception.hpp:33