All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DfsOrderVisitor< Arc > Class Template Reference

#include <factor.h>

Collaboration diagram for DfsOrderVisitor< Arc >:

Public Member Functions

 DfsOrderVisitor (vector< StateId > *order)
 
void InitVisit (const Fst< Arc > &fst)
 
bool InitState (StateId s, StateId)
 
bool TreeArc (StateId, const Arc &)
 
bool BackArc (StateId, const Arc &)
 
bool ForwardOrCrossArc (StateId, const Arc &)
 
void FinishState (StateId, StateId, const Arc *)
 
void FinishVisit ()
 

Private Types

typedef Arc::StateId StateId
 

Private Attributes

vector< StateId > * order_
 

Detailed Description

template<class Arc>
class fst::DfsOrderVisitor< Arc >

Definition at line 135 of file factor.h.

Member Typedef Documentation

typedef Arc::StateId StateId
private

Definition at line 138 of file factor.h.

Constructor & Destructor Documentation

DfsOrderVisitor ( vector< StateId > *  order)
inline

Definition at line 140 of file factor.h.

140 : order_(order) { order->clear(); }
vector< StateId > * order_
Definition: factor.h:149

Member Function Documentation

bool BackArc ( StateId  ,
const Arc &   
)
inline

Definition at line 144 of file factor.h.

144 { return true; }
void FinishState ( StateId  ,
StateId  ,
const Arc *   
)
inline

Definition at line 146 of file factor.h.

146 { }
void FinishVisit ( )
inline

Definition at line 147 of file factor.h.

147 { }
bool ForwardOrCrossArc ( StateId  ,
const Arc &   
)
inline

Definition at line 145 of file factor.h.

145 { return true; }
bool InitState ( StateId  s,
StateId   
)
inline

Definition at line 142 of file factor.h.

References DfsOrderVisitor< Arc >::order_.

142 { order_->push_back(s); return true; }
vector< StateId > * order_
Definition: factor.h:149
void InitVisit ( const Fst< Arc > &  fst)
inline

Definition at line 141 of file factor.h.

141 {}
bool TreeArc ( StateId  ,
const Arc &   
)
inline

Definition at line 143 of file factor.h.

143 { return true; }

Member Data Documentation

vector<StateId>* order_
private

Definition at line 149 of file factor.h.

Referenced by DfsOrderVisitor< Arc >::InitState().


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