diff options
Diffstat (limited to 'moses/src/ScoreProducer.h')
-rw-r--r-- | moses/src/ScoreProducer.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/moses/src/ScoreProducer.h b/moses/src/ScoreProducer.h deleted file mode 100644 index bd56a7a0d..000000000 --- a/moses/src/ScoreProducer.h +++ /dev/null @@ -1,40 +0,0 @@ -// $Id$ - -#ifndef _SCORE_PRODUCER_H_ -#define _SCORE_PRODUCER_H_ - -#include <string> - -class ScoreIndexManager; - -// to keep track of the various things that can produce a score, -// we use this evil implementation-inheritance to give them each -// a unique, sequential (read: good for vector indices) ID -// -// NOTE- do not confuse this with a producer/consumer pattern. -// this is not a producer in that sense. -class ScoreProducer -{ -private: - static unsigned int s_globalScoreBookkeepingIdCounter; - unsigned int m_scoreBookkeepingId; - - ScoreProducer(const ScoreProducer&); // don't implement -protected: - // it would be nice to force registration here, but some Producer objects - // are constructed before they know how many scores they have - ScoreProducer(); - virtual ~ScoreProducer(); - -public: - unsigned int GetScoreBookkeepingID() const { return m_scoreBookkeepingId; } - - //! returns the number of scores that a subclass produces. - // For example, a language model conventionally produces 1, a translation table some arbitrary number, etc - virtual unsigned int GetNumScoreComponents() const = 0; - - //! returns a string description of this producer - virtual const std::string GetScoreProducerDescription() const = 0; -}; - -#endif |