00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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