Blame view

tools/openfst-1.6.7/src/include/fst/script/verify.h 604 Bytes
8dcb6dfcb   Yannick Estève   first commit
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
26
27
  // See www.openfst.org for extensive documentation on this weighted
  // finite-state transducer library.
  
  #ifndef FST_SCRIPT_VERIFY_H_
  #define FST_SCRIPT_VERIFY_H_
  
  #include <fst/verify.h>
  #include <fst/script/arg-packs.h>
  #include <fst/script/fst-class.h>
  
  namespace fst {
  namespace script {
  
  using VerifyArgs = WithReturnValue<bool, const FstClass &>;
  
  template <class Arc>
  void Verify(VerifyArgs *args) {
    const Fst<Arc> &fst = *(args->args.GetFst<Arc>());
    args->retval = Verify(fst);
  }
  
  bool Verify(const FstClass &fst);
  
  }  // namespace script
  }  // namespace fst
  
  #endif  // FST_SCRIPT_VERIFY_H_