System documentation of the GNU Image-Finding Tool

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CScoreBoard.h

00001 /* -*- mode: c++ -*- 
00002 */
00003 /* 
00004 
00005     GIFT, a flexible content based image retrieval system.
00006     Copyright (C) 1998, 1999, 2000, 2001, 2002, CUI University of Geneva
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 
00022 */
00023 #ifndef _SCOREBOARD
00024 #define _SCOREBOARD
00025 
00026 #include <functional>
00027 #include <map>
00028 #ifdef HAS_HASH_MAP
00029 #include <hash_map>
00030 #else
00031 #define hash_map map
00032 #endif
00033 #include <iostream>
00034 #include "libMRML/include/CRelevanceLevel.h"
00035 #include "libMRML/include/CRelevanceLevelList.h"
00036 #include "libGIFTQuInvertedFile/include/CWeightingFunction.h"
00037 #include "libGIFTAcInvertedFile/include/CDocumentFrequencyElement.h"
00038 class CAcInvertedFile;
00039 
00058 class CScoreBoard:public hash_map<TID,double>,public binary_function<CWeightingFunction,CDocumentFrequencyElement,void>{
00059   /* this variable blocks the adding of new documents to the scoreboard */
00060   bool mIgnoreNewValues;
00061 
00062 public:
00068   CScoreBoard();
00069 
00075   void operator()(const CWeightingFunction&,
00076                   const CDocumentFrequencyElement&);
00077 
00083   void output(ostream&,const CAccessor&)const;
00084 
00090   void setIgnore();
00091 
00097   void releaseIgnore();
00098 
00104   void limitNumberTo(int maximumNumber);
00105 
00106 };
00107 
00108 
00109 #endif

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