Rewrite train for easier maintainance
[vspell.git] / utils / softcount.h
blobaa4aa11025f03defa14d79bc6af81d51cb880040
1 #ifndef __SOFTCOUNT_H__ // -*- tab-width: 2 mode: c++ -*-
2 #define __SOFTCOUNT_H__
4 #ifndef __DICTIONARY_H__
5 #include "dictionary.h"
6 #endif
8 #ifndef __WORDNODE_H__
9 #include "wordnode.h"
10 #endif
12 #ifndef __SPELL_H__
13 #include "spell.h"
14 #endif
16 #ifndef __DAG_H__
17 #include "dag.h"
18 #endif
19 #ifndef __VECTOR__
20 #include <vector>
21 #endif
23 #ifndef __IOSTREAM__
24 #include <iostream>
25 #endif
27 #ifndef BOOST_SHARED_PTR_HPP_INCLUDED
28 #include <boost/shared_ptr.hpp>
29 #endif
31 namespace SoftCounter
33 std::ostream& count_lattice(const Lattice &words,std::ostream &os,bool first_round = false);
34 std::ostream& count_dag(const DAG &words,std::ostream &os,int id,bool first_round = false);
35 void record2(const DAG &words,FILE *fp,int id);
36 int replay2(FILE *fp_in,FILE *fp_out,int id, bool first_round = false);
37 std::ostream& count_dag_fixed(const DAG &words,std::ostream &os,bool first_round = false);
40 #endif