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

Member Typedef Documentation

◆ Arg

typedef Arc::Label Arg

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

◆ Result

typedef int32 Result

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

Member Function Documentation

◆ operator()()

Result operator() ( Arg  a) const
inline

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

245  {
246  if (a == kNoLabel) return -1;
247  else if (a == 0) return 0;
248  else {
249  return 1 + ((a-1) % 10);
250  }
251  }

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