42 using namespace detail;
44 : cond( c ), result(false)
bool value() const
Return the result of the last evaluate() function.
virtual DataSourceCondition * clone() const
Return a shallow clone of this DataSource.
A class that wraps a Condition in a internal::DataSource<bool> interface.
bool get() const
Return the data as type T.
virtual DataSourceCondition * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
Create a deep copy of this internal::DataSource, unless it is already cloned.
ConditionInterface * condition() const
This interface represents the concept of a condition which can be evaluated and return true or false...
virtual ConditionInterface * clone() const =0
The Clone Software Pattern.
bool const & rvalue() const
Get a const reference to the value of this DataSource.
virtual ConditionInterface * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
When copying an Orocos program, we want identical internal::DataSource's to be mapped to identical Da...
virtual void reset()
Some conditions need to be reset at some points.
void reset()
Reset the data to initial values.
virtual bool evaluate()=0
Evaluate the Condition and return the outcome.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
DataSourceCondition(ConditionInterface *c)
DataSourceCondition takes ownership of the condition you pass it.