Made PDDL action preconditions and effects optional.

This commit is contained in:
2016-06-12 23:51:45 +02:00
parent 46351b2fe7
commit 1c8af793c2
4 changed files with 11 additions and 10 deletions

View File

@@ -27,8 +27,8 @@ class Action
const std::string &name() const;
const expressions::Variables &parameters() const;
const Expression &precondition() const;
const Expression &effect() const;
const Expression *precondition() const;
const Expression *effect() const;
private:
Action() = default;

View File

@@ -19,6 +19,7 @@ namespace expressions
//
////////////////////////////////////////////////////////////////////////////////////////////////////
// TODO: refactor without reference wrapper
template<class Type>
class Reference: public ExpressionCRTP<Reference<Type>>
{