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 257 of file fstext-utils-test.cc.

Member Typedef Documentation

typedef Arc::Label Arg

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

typedef int32 Result

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

Member Function Documentation

Result operator() ( Arg  a) const
inline

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

260  {
261  if (a == kNoLabel) return -1;
262  else if (a == 0) return 0;
263  else {
264  return 1 + ((a-1) % 10);
265  }
266  }

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