~ubuntu-branches/ubuntu/oneiric/mozc/oneiric

« back to all changes in this revision

Viewing changes to converter/nbest_generator.h

  • Committer: Bazaar Package Importer
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2010-07-14 03:26:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100714032647-13qjisj6m8cm8jdx
Tags: 0.12.410.102-1
* New upstream release (Closes: #588971).
  - Add mozc-server, mozc-utils-gui and scim-mozc packages.
* Update debian/rules.
  Add --gypdir option to build_mozc.py.
* Update debian/control.
  - Bumped standards-version to 3.9.0.
  - Update description.
* Add mozc icon (Closes: #588972).
* Add patch which revises issue 18.
  ibus_mozc_issue18.patch
* kFreeBSD build support.
  support_kfreebsd.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
class CandidateFilter;
45
45
class ConnectorInterface;
46
 
class ConverterData;
 
46
class Lattice;
47
47
 
48
48
// TODO(toshiyuki): write unittest for NBestGenerator.
49
49
//                  we can unittest this by making Mocks
50
 
//                  for Connector and ConverterData.
 
50
//                  for Connector and Lattice
51
51
class NBestGenerator {
52
52
 public:
53
53
  explicit NBestGenerator();
55
55
 
56
56
  // set starting Node and ending Node --
57
57
  // Try to enumurate N-best results between begin_node and end_node.
58
 
  void  Init(Node *begin_node, Node *end_node,
59
 
             ConnectorInterface *connector,
60
 
             ConverterData *data);
 
58
  void  Init(Node *begin_node, Node *end_node, Lattice *lattice);
61
59
 
62
60
  // reset internal priority queue. Reuse begin_node and eos_node
63
61
  void Reset();
102
100
  Node *begin_node_;
103
101
  Node *end_node_;
104
102
  ConnectorInterface *connector_;
105
 
  ConverterData *data_;
 
103
  Lattice *lattice_;
106
104
 
107
105
  DISALLOW_COPY_AND_ASSIGN(NBestGenerator);
108
106
};