2015-10-23 22:53:36 +03:00
|
|
|
/*
|
|
|
|
* Scores.h
|
|
|
|
*
|
|
|
|
* Created on: 23 Oct 2015
|
|
|
|
* Author: hieu
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2015-10-26 19:32:47 +03:00
|
|
|
#include <iostream>
|
2015-10-24 04:02:50 +03:00
|
|
|
#include <string>
|
2015-10-23 22:53:36 +03:00
|
|
|
#include "TypeDef.h"
|
2015-10-24 04:32:58 +03:00
|
|
|
#include "util/pool.hh"
|
2015-10-23 22:53:36 +03:00
|
|
|
|
2015-10-24 04:02:50 +03:00
|
|
|
class FeatureFunction;
|
2015-10-26 00:20:55 +03:00
|
|
|
class System;
|
2015-10-24 04:02:50 +03:00
|
|
|
|
2015-10-23 22:53:36 +03:00
|
|
|
class Scores {
|
2015-10-26 19:32:47 +03:00
|
|
|
friend std::ostream& operator<<(std::ostream &, const Scores &);
|
2015-10-23 22:53:36 +03:00
|
|
|
public:
|
2015-10-24 16:36:30 +03:00
|
|
|
Scores(util::Pool &pool, size_t numScores);
|
|
|
|
virtual ~Scores();
|
2015-10-23 22:53:36 +03:00
|
|
|
|
2015-10-26 00:20:55 +03:00
|
|
|
void CreateFromString(const std::string &str, const FeatureFunction &featureFunction, const System &system);
|
2015-10-24 16:36:30 +03:00
|
|
|
|
2015-10-26 00:20:55 +03:00
|
|
|
void PlusEquals(const std::vector<SCORE> &scores, const FeatureFunction &featureFunction, const System &system);
|
2015-10-23 22:53:36 +03:00
|
|
|
protected:
|
|
|
|
SCORE *m_scores;
|
2015-10-24 16:36:30 +03:00
|
|
|
SCORE m_total;
|
2015-10-23 22:53:36 +03:00
|
|
|
};
|
|
|
|
|