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

Member Typedef Documentation

typedef Arc::Label Arg

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

typedef int32 Result

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

Member Function Documentation

Result operator() ( Arg  a) const
inline

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

252  {
253  if (a == kNoLabel) return -1;
254  else if (a == 0) return 0;
255  else {
256  return 1 + ((a-1) % 10);
257  }
258  }

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