39 #ifndef CONDITION_CACHE_HPP 40 #define CONDITION_CACHE_HPP 43 #include "../internal/DataSources.hpp" 46 {
namespace scripting {
57 boost::shared_ptr<ConditionInterface>
mc;
71 result->
set( mc->evaluate() );
72 return result->
value();
81 virtual ConditionInterface*
copy( std::map<const base::DataSourceBase*, base::DataSourceBase*>& alreadyCloned )
const boost::shared_ptr< ConditionInterface > mc
This interface represents the concept of a condition which can be evaluated and return true or false...
virtual void set(param_t t)=0
virtual bool evaluate()
Evaluate the Condition and return the outcome.
ConditionCache(ConditionInterface *c, internal::AssignableDataSource< bool >::shared_ptr ds=internal::AssignableDataSource< bool >::shared_ptr())
virtual ConditionInterface * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
virtual ~ConditionCache()
internal::AssignableDataSource< bool >::shared_ptr result
boost::intrusive_ptr< DataSource< T > > shared_ptr
boost::intrusive_ptr< AssignableDataSource< T > > shared_ptr
internal::DataSource< bool >::shared_ptr getResult()
virtual result_t value() const =0
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual ConditionInterface * clone() const
virtual AssignableDataSource< T > * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const =0