All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 ( InputStateId  istate,
OutputStateId  ostate,
size_t  position,
Weight  weight 
)
inline

Member Function Documentation

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

InputStateId istate

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

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

OutputStateId ostate

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

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

size_t position

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

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


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