Cluster.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
21 #include "ObjectRelation.hpp"
22 #include <boost/shared_ptr.hpp>
23 
24 namespace ISM
25 {
26 class Cluster
27 {
28  public:
29  Cluster(const std::pair<TrackPtr, boost::shared_ptr<Cluster> >& referenceWithParent,
30  ObjectRelations& topology, const std::vector<std::pair<int, TrackPtr> >& mostCommonObjects,
31  std::map<TrackPtr, int>& objectOccurences);
32 
34  {
35  return children;
36  }
37 
39  {
40  return reference;
41  }
42 
43  std::vector<VoteSpecifierPtr> getVotersByVotersTypeAndObservedId(const std::string& type, const std::string& observedId) const;
44  void recommendLevel(unsigned level);
45  unsigned getRecommendedLevel();
46 
47  private:
50  std::map<std::string, std::map<std::string, std::vector<VoteSpecifierPtr> > > votesByVotersTypeAndObservedId;
51  unsigned recommendedLevel;
52 
53 }; typedef boost::shared_ptr<Cluster> ClusterPtr;
54 }
unsigned recommendedLevel
Definition: Cluster.hpp:51
boost::shared_ptr< Cluster > ClusterPtr
Definition: Cluster.hpp:53
Cluster(const std::pair< TrackPtr, boost::shared_ptr< Cluster > > &referenceWithParent, ObjectRelations &topology, const std::vector< std::pair< int, TrackPtr > > &mostCommonObjects, std::map< TrackPtr, int > &objectOccurences)
Definition: Cluster.cpp:24
std::vector< VoteSpecifierPtr > getVotersByVotersTypeAndObservedId(const std::string &type, const std::string &observedId) const
Definition: Cluster.cpp:127
TracksPtr children
Definition: Cluster.hpp:49
std::map< unsigned int, ISM::ObjectRelationPtr, std::less< unsigned > > ObjectRelations
TracksPtr getChildren()
Definition: Cluster.hpp:33
unsigned getRecommendedLevel()
Definition: Cluster.cpp:133
TrackPtr reference
Definition: Cluster.hpp:48
TrackPtr getReference()
Definition: Cluster.hpp:38
boost::shared_ptr< Tracks > TracksPtr
Definition: Tracks.hpp:42
std::map< std::string, std::map< std::string, std::vector< VoteSpecifierPtr > > > votesByVotersTypeAndObservedId
Definition: Cluster.hpp:50
boost::shared_ptr< Track > TrackPtr
Definition: Track.hpp:55
this namespace contains all generally usable classes.
void recommendLevel(unsigned level)


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40