Class ov::op::util::VariableContext¶
-
class VariableContext¶
VariableContext stores and manages a evaluation context for Variables.
Public Functions
-
VariableContext() = default¶
Constructs an uninitialized VariableContext.
-
inline explicit VariableContext(const VariableMap &variable_values)¶
Constructor for VariableContext.
- Parameters
variable_values – The values associated with a particular Variables.
-
inline void reset_variable_context() const¶
Sets the reset flags for all stored Variables to true.
-
inline void set_variable_values(const VariableMap &variable_values)¶
Sets the new values for Variables.
- Parameters
variable_values – The new values associated with a particular Variable.
-
inline void set_variable_value(const Variable::Ptr &variable, const VariableValue::Ptr &variable_value)¶
Changes/sets the values for Variable.
- Parameters
variable – New or stored Variable.
variable_value – The values associated with the variable.
-
inline void remove_variable_value(const Variable::Ptr &variable)¶
Removes context for a particular Variable.
- Parameters
variable – The variable for which the context will be cleared.
-
inline const VariableMap &get_variable_values() const¶
Returns the current values for Variables.
-
inline VariableValue::Ptr get_variable_value(const Variable::Ptr &variable) const¶
Returns the value for specified Variable.
-
VariableContext() = default¶