Victor
 All Data Structures Functions Variables Friends Pages
ranking_helper2.h
1 /* This file is part of Victor.
2 
3  Victor is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Victor is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with Victor. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 
18 #ifndef _RANK_HELPER2_H_
19 #define _RANK_HELPER2_H_
20 
21 // Includes:
22 
23 // Global constants, typedefs, etc. (to avoid):
24 
25 namespace Victor { namespace Lobo {
26 
36  public:
37 
38  ranking_helper2(int ind, double val);
40  int get_index() const;
41  double get_value() const;
42  bool operator<(const ranking_helper2 &name) const;
44  void copy(const ranking_helper2& c);
45 
46  private:
47  int index;
48  double value;
49  };
50 
56  inline int ranking_helper2::get_index() const {
57  return index;
58  }
59 
65  inline double ranking_helper2::get_value() const {
66  return value;
67  }
68 
69 
70 }} // namespace
71 #endif
int get_index() const
Definition: ranking_helper2.h:56
bool operator<(const ranking_helper2 &name) const
Definition: ranking_helper2.cc:57
void copy(const ranking_helper2 &c)
Definition: ranking_helper2.cc:78
ranking_helper2 & operator=(const ranking_helper2 &orig)
Definition: ranking_helper2.cc:66
ranking_helper2(int ind, double val)
Definition: ranking_helper2.cc:33
the class contains methods to manage the ranking
Definition: ranking_helper2.h:35
double get_value() const
Definition: ranking_helper2.h:65