virtual bool test () const;
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const;
private:
- SGSharedPtr<SGCondition> _condition;
+ SGConditionRef _condition;
};
virtual void addCondition (SGCondition * condition);
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const;
private:
- std::vector<SGSharedPtr<SGCondition> > _conditions;
+ std::vector<SGConditionRef> _conditions;
};
virtual void addCondition (SGCondition * condition);
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const;
private:
- std::vector<SGSharedPtr<SGCondition> > _conditions;
+ std::vector<SGConditionRef> _conditions;
};
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const { }
};
+typedef SGSharedPtr<SGCondition> SGConditionRef;
+
/**
* Base class for a conditional components.
virtual const SGCondition * getCondition () const { return _condition; }
virtual bool test () const;
private:
- SGSharedPtr<SGCondition> _condition;
+ SGConditionRef _condition;
};