Victor
 All Data Structures Functions Variables Friends Pages
ranking_helper.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_HELPER_H_
19 #define _RANK_HELPER_H_
20 
21 // Includes:
22 
23 // Global constants, typedefs, etc. (to avoid):
24 
25 namespace Victor { namespace Lobo {
26 
34  public:
35 
36  ranking_helper(int ind, double val);
38  int get_index() const;
39  double get_value() const;
40  bool operator<(const ranking_helper &name) const;
42  void copy(const ranking_helper& c);
43 
44  private:
45  int index; // contains the rms ranking of the solution
46  double value; // contains a value from a filter (like the propensity or the collision)
47  };
48 
54  inline int ranking_helper::get_index() const {
55  return index;
56  }
57 
63  inline double ranking_helper::get_value() const {
64  return value;
65  }
66 
67 
68 }} // namespace
69 #endif
ranking_helper(int ind, double val)
Definition: ranking_helper.cc:32
bool operator<(const ranking_helper &name) const
Definition: ranking_helper.cc:56
Contains methods to manage the ranking.
Definition: ranking_helper.h:33
double get_value() const
Definition: ranking_helper.h:63
ranking_helper & operator=(const ranking_helper &orig)
Definition: ranking_helper.cc:65
void copy(const ranking_helper &c)
Definition: ranking_helper.cc:77
int get_index() const
Definition: ranking_helper.h:54