#include <boost/tokenizer.hpp>
#include <deque>
#include <iostream>
-#include <unordered_map>
+#include <map>
/**
* \file
return __own_decision_item;
}
-const std::unordered_map<std::string, std::shared_ptr<TreeNode>> &TreeNode::getChildren() const {
+const std::map<std::string, std::shared_ptr<TreeNode>> &TreeNode::getChildren() const {
return __children;
}
#include "policy.hpp"
#include <memory>
-#include <unordered_map>
+#include <map>
#include <deque>
namespace ldp_xml_parser
const std::string &getToken() const;
const DecisionItem &getOwnPrefixDecisionItem() const;
const DecisionItem &getOwnDecisionItem() const;
- const std::unordered_map<std::string, std::shared_ptr<TreeNode>> &getChildren() const;
+ const std::map<std::string, std::shared_ptr<TreeNode>> &getChildren() const;
private:
DecisionItem prefixBasedDecision() const;
std::string __token; // element of dot-separated name
DecisionItem __own_prefix_decision_item;
DecisionItem __own_decision_item;
- std::unordered_map<std::string, std::shared_ptr<TreeNode>> __children;
+ std::map<std::string, std::shared_ptr<TreeNode>> __children;
friend class OwnershipTree;
};