Skip to content

Commit

Permalink
moved factory to include
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Nov 21, 2023
1 parent 0d61450 commit eee4aba
Show file tree
Hide file tree
Showing 39 changed files with 92 additions and 94 deletions.
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/booleans/empty.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand Down Expand Up @@ -55,7 +55,7 @@ class EmptyBoolean : public Boolean {
}

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Boolean& other) const override {
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/booleans/inclusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand Down Expand Up @@ -61,7 +61,7 @@ class InclusionBoolean : public Boolean {
}

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Boolean& other) const override {
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/booleans/nullary.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class NullaryBoolean : public Boolean {
NullaryBoolean(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, const Predicate& predicate);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Boolean& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/all.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class AllConcept : public Concept {
AllConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role, std::shared_ptr<const Concept> concept);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/and.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -33,7 +33,7 @@ class AndConcept : public Concept {
AndConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Concept> concept_1, std::shared_ptr<const Concept> concept_2);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/bot.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -26,7 +26,7 @@ class BotConcept : public Concept {
BotConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/diff.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -30,7 +30,7 @@ class DiffConcept : public Concept {

DiffConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Concept> concept_1, std::shared_ptr<const Concept> concept_2);
template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/equal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class EqualConcept : public Concept {
EqualConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role_left, std::shared_ptr<const Role> role_right);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/not.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -30,7 +30,7 @@ class NotConcept : public Concept {
NotConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Concept> concept);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/one_of.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class OneOfConcept : public Concept {
OneOfConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, const Constant& constant);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/or.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class OrConcept : public Concept {
OrConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Concept> concept_1, std::shared_ptr<const Concept> concept_2);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/primitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -32,7 +32,7 @@ class PrimitiveConcept : public Concept {
PrimitiveConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, const Predicate& predicate, int pos);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/projection.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class ProjectionConcept : public Concept {
ProjectionConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, const std::shared_ptr<const Role>& role, int pos);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/some.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -30,7 +30,7 @@ class SomeConcept : public Concept {

SomeConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role, std::shared_ptr<const Concept> concept);
template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/subset.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -30,7 +30,7 @@ class SubsetConcept : public Concept {

SubsetConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role_left, std::shared_ptr<const Role> role_right);
template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/concepts/top.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -26,7 +26,7 @@ class TopConcept : public Concept {
TopConcept(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Concept& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/numericals/concept_distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class ConceptDistanceNumerical : public Numerical {

ConceptDistanceNumerical(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Concept> concept_from, std::shared_ptr<const Role> role, std::shared_ptr<const Concept> concept_to);
template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Numerical& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/numericals/count.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand Down Expand Up @@ -60,7 +60,7 @@ class CountNumerical : public Numerical {
: Numerical(vocabulary_info, index, element->is_static()), m_element(element) { }

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Numerical& other) const override {
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/numericals/role_distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class RoleDistanceNumerical : public Numerical {

RoleDistanceNumerical(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role_from, std::shared_ptr<const Role> role, std::shared_ptr<const Role> role_to);
template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Numerical& other) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -31,7 +31,7 @@ class SumConceptDistanceNumerical : public Numerical {

SumConceptDistanceNumerical(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Concept> concept_from, std::shared_ptr<const Role> role, std::shared_ptr<const Concept> concept_to);
template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Numerical& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/numericals/sum_role_distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -32,7 +32,7 @@ class SumRoleDistanceNumerical : public Numerical {
SumRoleDistanceNumerical(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role_from, std::shared_ptr<const Role> role, std::shared_ptr<const Role> role_to);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Numerical& other) const override;
Expand Down
4 changes: 2 additions & 2 deletions include/dlplan/core/elements/roles/and.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace std::string_literals;


namespace dlplan::utils {
namespace dlplan {
template<typename... Ts>
class ReferenceCountedObjectFactory;
}
Expand All @@ -30,7 +30,7 @@ class AndRole : public Role {
AndRole(ElementIndex index, std::shared_ptr<VocabularyInfo> vocabulary_info, std::shared_ptr<const Role> role_1, std::shared_ptr<const Role> role_2);

template<typename... Ts>
friend class dlplan::utils::ReferenceCountedObjectFactory;
friend class dlplan::ReferenceCountedObjectFactory;

public:
bool operator==(const Role& other) const override;
Expand Down
Loading

0 comments on commit eee4aba

Please sign in to comment.