PruneSpecialClass< Arc >::Task Struct Reference

#include <prune-special-inl.h>

Collaboration diagram for PruneSpecialClass< Arc >::Task:

Public Member Functions

 Task (InputStateId istate, OutputStateId ostate, size_t position, Weight weight)
 
bool operator< (const Task &other) const
 

Public Attributes

InputStateId istate
 
OutputStateId ostate
 
size_t position
 
Weight weight
 

Detailed Description

template<class Arc>
struct fst::PruneSpecialClass< Arc >::Task

Definition at line 63 of file prune-special-inl.h.

Constructor & Destructor Documentation

◆ Task()

Task ( InputStateId  istate,
OutputStateId  ostate,
size_t  position,
Weight  weight 
)
inline

Member Function Documentation

◆ operator<()

bool operator< ( const Task other) const
inline

Definition at line 72 of file prune-special-inl.h.

References fst::Compare(), and PruneSpecialClass< Arc >::Task::weight.

72  {
73  return Compare(weight, other.weight) < 0;
74  }
int Compare(const LatticeWeightTpl< FloatType > &w1, const LatticeWeightTpl< FloatType > &w2)
Compare returns -1 if w1 < w2, +1 if w1 > w2, and 0 if w1 == w2.

Member Data Documentation

◆ istate

◆ ostate

◆ position

size_t position

Definition at line 66 of file prune-special-inl.h.

Referenced by PruneSpecialClass< Arc >::ProcessTask().

◆ weight


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