System documentation of the GNU Image-Finding Tool

CIDRelevanceLevelPair.h
1 /* -*- mode: c++ -*-
2 */
3 /*
4 
5  GIFT, a flexible content based image retrieval system.
6  Copyright (C) 1998, 1999, 2000, 2001, 2002, CUI University of Geneva
7 
8  Copyright (C) 2003, 2004 Bayreuth University
9  2005 Bamberg University
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 
24 */
25 /***************************************
26 *
27 * CIDRELEVANCELEVELPAIR
28 *
29 ****************************************
30 *
31 * modification history:
32 *
33 *@Author Wolfgang Müller
34 *
35 ****************************************
36 *
37 * compiler defines used:
38 *
39 *
40 ****************************************/
41 #ifndef _CIDRELEVANCELEVELPAIR
42 #define _CIDRELEVANCELEVELPAIR
43 #include "libMRML/include/uses-declarations.h"
44 #include <iostream>
45 #include "libMRML/include/TID.h"
46 #include <functional>
47 #include <cmath>
48 
52  int mID;
54  double mRelevanceLevel;
55 public:
56 /***************************************
57 *
58 *
59 *
60 ***************************************/
65 
66 /***************************************
67 *
68 *
69 *
70 ***************************************/
72  CIDRelevanceLevelPair(const TID inID,
73  double inRelevanceLevel);
74 
75 /***************************************
76 *
77 *
78 *
79 ***************************************/
84 /***************************************
85 *
86 *
87 *
88 ***************************************/
91  TID getID()const;
92 
93 /***************************************
94 *
95 *
96 *
97 ***************************************/
99  double getRelevanceLevel()const;
100 
101 /***************************************
102 *
103 *
104 *
105 ***************************************/
107  void setRelevanceLevel(const double inRelevanceLevel);
108 
109 /***************************************
110 *
111 *
112 *
113 ***************************************/
115  void adjustRelevanceLevel(const double inRelevanceLevel);
116 
117 /***************************************
118 *
119 *
120 *
121 ***************************************/
123  void divideRelevanceLevelBy(const double inDivisor);
125 };
126 
128  public binary_function<CIDRelevanceLevelPair,CIDRelevanceLevelPair,bool>{
129 public:
131  inline bool operator()(const CIDRelevanceLevelPair& l,
132  const CIDRelevanceLevelPair& t){
133  return
134  fabs(double(l.getID()))
135  <
136  fabs(double(t.getID()));
137  };
138 };
139 
140 
141 
142 /***************************************
143 *
144 *
145 *
146 ***************************************/
147 bool operator<(const CIDRelevanceLevelPair& l,
148  const CIDRelevanceLevelPair& t);
149 
150 #endif

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen