GrammarFstPreparer::ArcCategory Struct Reference
Collaboration diagram for GrammarFstPreparer::ArcCategory:

Public Member Functions

bool operator< (const ArcCategory &other) const
 

Public Attributes

int32 nonterminal
 
StateId nextstate
 
Label olabel
 

Detailed Description

Definition at line 643 of file grammar-fst.cc.

Member Function Documentation

◆ operator<()

bool operator< ( const ArcCategory other) const
inline

Definition at line 652 of file grammar-fst.cc.

References GrammarFstPreparer::ArcCategory::nextstate, GrammarFstPreparer::ArcCategory::nonterminal, and GrammarFstPreparer::ArcCategory::olabel.

652  {
653  if (nonterminal < other.nonterminal) return true;
654  else if (nonterminal > other.nonterminal) return false;
655  if (nextstate < other.nextstate) return true;
656  else if (nextstate > other.nextstate) return false;
657  return olabel < other.olabel;
658  }

Member Data Documentation

◆ nextstate

◆ nonterminal

◆ olabel


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