CMatchBookKeeper.h
Go to the documentation of this file.
1 /**
2  * \file CMatchBookKeeper.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CMatchBookKeeper
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CMATCHBOOKKEEPER_H
15 #define RECOTOOL_CMATCHBOOKKEEPER_H
16 
17 #include <vector>
18 #include <map>
19 
20 namespace cmtool {
21  /**
22  \class CMatchBookKeeper
23  User defined class CMatchBookKeeper ... these comments are used to generate
24  doxygen documentation!
25  */
27 
28  public:
29 
30  /// Default constructor
32 
33  /// Reset method
34  void Reset();
35 
36  /// Method to register matched clusters
37  void Match(const std::vector<unsigned int>& matched_indexes,
38  const float& score);
39 
40  /// Method to get result
41  std::vector<std::vector<unsigned int> > GetResult() const;
42 
43  /// Method to pass result
44  void PassResult(std::vector<std::vector<unsigned int> >& result) const;
45 
46  protected:
47 
48  std::multimap<float,std::vector<unsigned int> > _register;
49 
50  };
51 }
52 #endif
53 /** @} */ // end of doxygen group
static QCString result
struct vector vector
void PassResult(std::vector< std::vector< unsigned int > > &result) const
Method to pass result.
CMatchBookKeeper()
Default constructor.
void Match(const std::vector< unsigned int > &matched_indexes, const float &score)
Method to register matched clusters.
std::multimap< float, std::vector< unsigned int > > _register
void Reset()
Reset method.
std::vector< std::vector< unsigned int > > GetResult() const
Method to get result.