29 TypeToInnerMap::iterator typeIt =
votes.find(vote->vote->objectType);
30 if (typeIt ==
votes.end())
32 typeIt =
votes.insert(std::make_pair(vote->vote->objectType,
IdToVoteMap())).first;
35 IdToVoteMap::iterator idIt = typeIt->second.find(vote->vote->observedId);
36 if (idIt == typeIt->second.end())
38 idIt = typeIt->second.insert(std::make_pair(vote->vote->observedId,
41 idIt->second.push_back(vote);
void insert(const VotedPosePtr &vote)
std::vector< VotedPosePtr > VotedPosePtrs
boost::shared_ptr< VotedPose > VotedPosePtr
this namespace contains all generally usable classes.
std::map< std::string, VotedPosePtrs > IdToVoteMap