All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TestFunctor< Arc > Struct Template Reference

Public Types

typedef int32 Result
 
typedef Arc::Label Arg
 

Public Member Functions

Result operator() (Arg a) const
 

Detailed Description

template<class Arc>
struct fst::TestFunctor< Arc >

Definition at line 239 of file fstext-utils-test.cc.

Member Typedef Documentation

typedef Arc::Label Arg

Definition at line 241 of file fstext-utils-test.cc.

typedef int32 Result

Definition at line 240 of file fstext-utils-test.cc.

Member Function Documentation

Result operator() ( Arg  a) const
inline

Definition at line 242 of file fstext-utils-test.cc.

242  {
243  if (a == kNoLabel) return -1;
244  else if (a == 0) return 0;
245  else {
246  return 1 + ((a-1) % 10);
247  }
248  }

The documentation for this struct was generated from the following file: