Cambridge SMT System
ucam::fsttools::StateHandler Struct Reference

#include <fstutils.topofeatures.hpp>

Public Types

typedef unsigned StateId
 
typedef std::pair< bool, bool > StateDetailType
 
typedef std::pair< StateId, StateDetailTypeAddResultType
 
typedef std::map< int, int > VectorState
 
typedef boost::bimap< StateId, VectorStateBimapStateIdVectorStateType
 

Public Member Functions

 StateHandler (fst::VectorFst< TupleArc32 > &f, fst::VectorFst< TupleArc32 > &o)
 
AddResultType add (VectorState &out)
 
bool get (StateId const &in, VectorState &out)
 
bool get (VectorState const &in, StateId &out)
 

Public Attributes

BimapStateIdVectorStateType state
 
fst::VectorFst< TupleArc32 > & f_
 
fst::VectorFst< TupleArc32 > & o_
 

Detailed Description

Definition at line 146 of file fstutils.topofeatures.hpp.

Member Typedef Documentation

typedef std::pair<bool, bool> ucam::fsttools::StateHandler::StateDetailType

Definition at line 151 of file fstutils.topofeatures.hpp.

Definition at line 149 of file fstutils.topofeatures.hpp.

typedef std::map<int,int> ucam::fsttools::StateHandler::VectorState

Definition at line 154 of file fstutils.topofeatures.hpp.

Constructor & Destructor Documentation

ucam::fsttools::StateHandler::StateHandler ( fst::VectorFst< TupleArc32 > &  f,
fst::VectorFst< TupleArc32 > &  o 
)
inlineexplicit

Definition at line 161 of file fstutils.topofeatures.hpp.

Member Function Documentation

AddResultType ucam::fsttools::StateHandler::add ( VectorState out)
inline

Definition at line 167 of file fstutils.topofeatures.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ucam::fsttools::StateHandler::get ( StateId const &  in,
VectorState out 
)
inline

Definition at line 183 of file fstutils.topofeatures.hpp.

Here is the caller graph for this function:

bool ucam::fsttools::StateHandler::get ( VectorState const &  in,
StateId out 
)
inline

Definition at line 194 of file fstutils.topofeatures.hpp.

Member Data Documentation

fst::VectorFst<TupleArc32>& ucam::fsttools::StateHandler::f_

Definition at line 158 of file fstutils.topofeatures.hpp.

fst::VectorFst<TupleArc32>& ucam::fsttools::StateHandler::o_

Definition at line 159 of file fstutils.topofeatures.hpp.

BimapStateIdVectorStateType ucam::fsttools::StateHandler::state

Definition at line 156 of file fstutils.topofeatures.hpp.


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