summaryrefslogtreecommitdiff
path: root/klm/search/config.hh
blob: e21e4b7c40e17edbb8eff9bbcf8e402c69b8b904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef SEARCH_CONFIG__
#define SEARCH_CONFIG__

#include "search/weights.hh"
#include "util/string_piece.hh"

namespace search {

class Config {
  public:
    Config(StringPiece weight_str, unsigned int pop_limit) :
      weights_(weight_str), pop_limit_(pop_limit) {}

    const Weights &GetWeights() const { return weights_; }

    unsigned int PopLimit() const { return pop_limit_; }

  private:
    search::Weights weights_;
    unsigned int pop_limit_;
};

} // namespace search

#endif // SEARCH_CONFIG__