Skip to content

Commit

Permalink
removed usage of boost small vector for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Apr 22, 2024
1 parent e518577 commit 5ef95e8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions include/loki/details/pddl/declarations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef LOKI_INCLUDE_LOKI_PDDL_DECLARATIONS_HPP_
#define LOKI_INCLUDE_LOKI_PDDL_DECLARATIONS_HPP_

#include <boost/container/small_vector.hpp>
#include <cstddef>
#include <unordered_map>
#include <variant>
Expand All @@ -42,8 +41,7 @@ using Requirements = const RequirementsImpl*;

class TypeImpl;
using Type = const TypeImpl*;
using TypeList = boost::container::small_vector<Type, 1>; // often single type
// using TypeList = std::vector<Type>;
using TypeList = std::vector<Type>;

class ObjectImpl;
using Object = const ObjectImpl*;
Expand All @@ -60,17 +58,15 @@ class TermVariableImpl;
using TermVariable = const TermVariableImpl*;
using TermImpl = std::variant<TermObjectImpl, TermVariableImpl>;
using Term = const TermImpl*;
using TermList = boost::container::small_vector<Term, 2>; // often unary and binary predicates
// using TermList = std::vector<Term>;
using TermList = std::vector<Term>;

class AtomImpl;
using Atom = const AtomImpl*;
using AtomList = std::vector<Atom>;

class ParameterImpl;
using Parameter = const ParameterImpl*;
using ParameterList = boost::container::small_vector<Parameter, 10>; // often actions, quantifiers with few parameters
// using ParameterList = std::vector<Parameter>;
using ParameterList = std::vector<Parameter>;
using ParameterAssignment = std::unordered_map<Parameter, Object>;

class PredicateImpl;
Expand Down

0 comments on commit 5ef95e8

Please sign in to comment.