Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jun 3, 2024
1 parent f1ad1c4 commit 0d0de5c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions include/dlplan/policy/condition.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class EqualNumericalCondition : public NamedElementCondition<NamedNumerical>, pu

class GreaterConceptCondition : public NamedElementCondition<NamedConcept>, public std::enable_shared_from_this<GreaterConceptCondition> {
private:
GreaterConceptCondition(int identifier, std::shared_ptr<const NamedConcept> concept_);
GreaterConceptCondition(int identifier, std::shared_ptr<const NamedConcept> concept__);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand All @@ -127,7 +127,7 @@ class GreaterConceptCondition : public NamedElementCondition<NamedConcept>, publ

class EqualConceptCondition : public NamedElementCondition<NamedConcept>, public std::enable_shared_from_this<EqualConceptCondition> {
private:
EqualConceptCondition(int identifier, std::shared_ptr<const NamedConcept> concept_);
EqualConceptCondition(int identifier, std::shared_ptr<const NamedConcept> concept__);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand Down
10 changes: 5 additions & 5 deletions include/dlplan/policy/effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class EqualNumericalEffect : public NamedElementEffect<NamedNumerical>, public s

class IncrementConceptEffect : public NamedElementEffect<NamedConcept>, public std::enable_shared_from_this<IncrementConceptEffect> {
private:
IncrementConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept);
IncrementConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept_);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand All @@ -188,7 +188,7 @@ class IncrementConceptEffect : public NamedElementEffect<NamedConcept>, public s

class DecrementConceptEffect : public NamedElementEffect<NamedConcept>, public std::enable_shared_from_this<DecrementConceptEffect> {
private:
DecrementConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept);
DecrementConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept_);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand All @@ -204,7 +204,7 @@ class DecrementConceptEffect : public NamedElementEffect<NamedConcept>, public s

class UnchangedConceptEffect : public NamedElementEffect<NamedConcept>, public std::enable_shared_from_this<UnchangedConceptEffect> {
private:
UnchangedConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept);
UnchangedConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept_);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand All @@ -221,7 +221,7 @@ class UnchangedConceptEffect : public NamedElementEffect<NamedConcept>, public s

class GreaterConceptEffect : public NamedElementEffect<NamedConcept>, public std::enable_shared_from_this<GreaterConceptEffect> {
private:
GreaterConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept);
GreaterConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept_);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand All @@ -237,7 +237,7 @@ class GreaterConceptEffect : public NamedElementEffect<NamedConcept>, public std

class EqualConceptEffect : public NamedElementEffect<NamedConcept>, public std::enable_shared_from_this<EqualConceptEffect> {
private:
EqualConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept);
EqualConceptEffect(int identifier, std::shared_ptr<const NamedConcept> concept_);

template<typename... Ts>
friend class dlplan::ReferenceCountedObjectFactory;
Expand Down
2 changes: 1 addition & 1 deletion include/dlplan/policy/parsers/syntactic/ast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ namespace dlplan::policy::ast
};

struct ConceptImplementation {
core::ast::Concept concept;
core::ast::Concept concept_;
};

struct Concept : x3::position_tagged {
Expand Down
2 changes: 1 addition & 1 deletion include/dlplan/policy/parsers/syntactic/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace dlplan::policy

parser::concept_definition_type const& concept_definition();
parser::concept_implementation_type const& concept_implementation();
parser::concept_type const& concept();
parser::concept_type const& concept_();
parser::concept_reference_type const& concept_reference();
parser::concepts_type const& concepts();

Expand Down
2 changes: 1 addition & 1 deletion src/policy/parsers/semantic/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ std::string parse(
}
std::shared_ptr<const dlplan::core::Concept> parse(
const ast::ConceptImplementation& node, const dlplan::error_handler_type& error_handler, Context& context) {
return dlplan::core::parse(node.concept, error_handler, *context.policy_factory.get_element_factory());
return dlplan::core::parse(node.concept_, error_handler, *context.policy_factory.get_element_factory());
}

std::pair<std::string, std::shared_ptr<const dlplan::policy::NamedConcept>> parse(
Expand Down
2 changes: 1 addition & 1 deletion src/policy/parsers/syntactic/ast_adapted.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::NumericalReference, key)
BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::Numericals, definitions)

BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::ConceptDefinition, key)
BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::ConceptImplementation, concept)
BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::ConceptImplementation, concept_)
BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::Concept, definition, implementation)
BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::ConceptReference, key)
BOOST_FUSION_ADAPT_STRUCT(dlplan::policy::ast::Concepts, definitions)
Expand Down
12 changes: 6 additions & 6 deletions src/policy/parsers/syntactic/parser_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace dlplan::policy::parser

concept_definition_type const concept_definition = "concept_definition";
concept_implementation_type const concept_implementation = "concept_implementation";
concept_type const concept = "concept";
concept_type const concept_ = "concept_";
concept_reference_type const concept_reference = "concept_reference";
concepts_type const concepts = "concepts";

Expand Down Expand Up @@ -119,9 +119,9 @@ namespace dlplan::policy::parser

const auto concept_definition_def = name;
const auto concept_implementation_def = dlplan::core::concept_();
const auto concept_def = lit('(') > concept_definition > lit('"') > concept_implementation > lit('"') > lit(')');
const auto concept__def = lit('(') > concept_definition > lit('"') > concept_implementation > lit('"') > lit(')');
const auto concept_reference_def = name;
const auto concepts_def = lit('(') >> lit(":concepts") > *concept > lit(')');
const auto concepts_def = lit('(') >> lit(":concepts") > *concept_ > lit(')');

const auto role_definition_def = name;
const auto role_implementation_def = dlplan::core::role();
Expand Down Expand Up @@ -177,7 +177,7 @@ namespace dlplan::policy::parser
name,
boolean_definition, boolean_implementation, boolean, boolean_reference, booleans,
numerical_definition, numerical_implementation, numerical, numerical_reference, numericals,
concept_definition, concept_implementation, concept, concept_reference, concepts,
concept_definition, concept_implementation, concept_, concept_reference, concepts,
role_definition, role_implementation, role, role_reference, roles,
positive_boolean_condition, negative_boolean_condition, greater_numerical_condition, equal_numerical_condition, greater_concept_condition, equal_concept_condition,
positive_boolean_effect, negative_boolean_effect, unchanged_boolean_effect, increment_numerical_effect, decrement_numerical_effect, unchanged_numerical_effect, greater_numerical_effect, equal_numerical_effect, increment_concept_effect, decrement_concept_effect, unchanged_concept_effect, greater_concept_effect, equal_concept_effect,
Expand Down Expand Up @@ -270,8 +270,8 @@ namespace dlplan::policy
parser::concept_implementation_type const& concept_implementation() {
return parser::concept_implementation;
}
parser::concept_type const& concept() {
return parser::concept;
parser::concept_type const& concept_() {
return parser::concept_;
}
parser::concept_reference_type const& concept_reference() {
return parser::concept_reference;
Expand Down

0 comments on commit 0d0de5c

Please sign in to comment.