40 #include <ompl/multilevel/datastructures/pathrestriction/Head.h>
48 OMPL_CLASS_FORWARD(Head);
59 using OccurenceMap = std::map<std::string, int>;
61 void operator()(std::string s)
65 auto entry = map_.find(s);
66 if (entry == map_.end())
72 map_[s] = map_[s] + 1;
91 OccurenceMap::iterator itr;
92 std::cout << std::string(80,
'-') << std::endl;
93 std::cout <<
"HeadAnalyzer (" << samples_ <<
" samples, location " << head_->getLocationOnBasePath()
95 for (itr = map_.begin(); itr != map_.end(); ++itr)
97 std::cout <<
" > " << itr->first <<
": " << itr->second << std::endl;
99 std::cout << std::string(80,
'-') << std::endl;