23 #ifndef VARIABLE_PARENT_H_INCLUDED 24 #define VARIABLE_PARENT_H_INCLUDED 54 bool isValued()
const override;
56 Expr getValue()
const;
58 void setValue(
long double t_value);
60 void setValue(
Expr const &t_value);
64 Expr generateInstance() = 0;
69 bool isInstance(
Expr_info expr)
const = 0;
102 void printDefinition(
103 std::ostream &out = std::cout,
108 Expr generateInstance()
override;
112 bool isInstance(
Expr_info expr)
const override;
124 long double t_value);
127 Expr const& t_value);
139 void printDefinition(
140 std::ostream &out = std::cout,
145 bool isElementary()
const;
147 bool isAllDependencies()
const;
149 void setElementary(
bool t_elementary);
151 void setAllDependencies(
bool t_allDependencies);
163 Expr generateInstance()
override;
167 bool isInstance(
Expr_info expr)
const override;
178 bool allDependencies;
180 std::vector<unique_Expr_c> dependencies;
Namespace for csl library.
Definition: abreviation.h:34
Base classes for parents and elements.
PrimaryType
Definition: parent.h:39
Definition: variableParent.h:31
Root class of the inheritance tree of abstracts.
Definition: abstract.h:76
cslParent::Type getType() const override
Definition: variableParent.h:135
virtual bool dependsOn(Expr_info expr) const
Tells if the parent depends on another expression or not.
Definition: parent.cpp:297
cslParent::Type getType() const override
Definition: variableParent.h:98
Base class for all parents (indicial, fields etc). All parents derive from this class.
Definition: parent.h:81
cslParent::PrimaryType getPrimaryType() const override
Definition: variableParent.h:50
Definition: variableParent.h:78
Type
Definition: parent.h:47
Base classes for all exprs in the program.
Expression type/.
Definition: abstract.h:1573
Definition: variableParent.h:116