20 #include <boost/shared_ptr.hpp> 40 std::map<std::string, std::vector<VoteSpecifierPtr> > voteSpecifiersPerObject,
41 std::set<std::string> objectTypes) : patternDefinitions(patternDefinitions),
42 voteSpecifiersPerObject(voteSpecifiersPerObject),
43 objectTypes(objectTypes) {}
47 std::stringstream ssl;
48 std::stringstream ssr;
51 return ssl.str() < ssr.str();
56 std::stringstream strm;
57 strm <<
"PatternDefinitions:" << std::endl;
58 for(
auto& strPatPair : patternDefinitions)
60 strm << strPatPair.first <<
" : " << strPatPair.second << endl;
64 strm <<
"VoteSpecifiersPerObject:" << std::endl;
65 for(
auto& strVsVecPair : voteSpecifiersPerObject)
67 strm << strVsVecPair.first <<
" :" << endl;
68 std::vector<VoteSpecifierPtr> vs = strVsVecPair.second;
79 strm <<
"ObjectTypes:" << std::endl;
80 for(
auto& ot : objectTypes)
89 };
typedef boost::shared_ptr<ImplicitShapeModel>
IsmPtr;
std::map< std::string, std::vector< VoteSpecifierPtr > > voteSpecifiersPerObject
std::map< std::string, PatternPtr > patternDefinitions
std::set< std::string > objectTypes
ImplicitShapeModel(std::map< std::string, PatternPtr > patternDefinitions, std::map< std::string, std::vector< VoteSpecifierPtr > > voteSpecifiersPerObject, std::set< std::string > objectTypes)
static bool sortVoteSpecPtrAscAlpha(const VoteSpecifierPtr &lhs, const VoteSpecifierPtr &rhs)
boost::shared_ptr< ImplicitShapeModel > IsmPtr
boost::shared_ptr< VoteSpecifier > VoteSpecifierPtr
this namespace contains all generally usable classes.