FST  openfst-1.7.2
OpenFst Library
Classes | Public Member Functions | Friends | List of all members
fst::internal::Partition< T > Class Template Reference

#include <partition.h>

Public Member Functions

 Partition ()
 
 Partition (T num_elements)
 
void Initialize (size_t num_elements)
 
AddClass ()
 
void AllocateClasses (T num_classes)
 
void Add (T element_id, T class_id)
 
void Move (T element_id, T class_id)
 
void SplitOn (T element_id)
 
template<class Queue >
void FinalizeSplit (Queue *queue)
 
const T ClassId (T element_id) const
 
const size_t ClassSize (T class_id) const
 
const T NumClasses () const
 

Friends

class PartitionIterator< T >
 

Detailed Description

template<typename T>
class fst::internal::Partition< T >

Definition at line 53 of file partition.h.

Constructor & Destructor Documentation

template<typename T>
fst::internal::Partition< T >::Partition ( )
inline

Definition at line 55 of file partition.h.

template<typename T>
fst::internal::Partition< T >::Partition ( num_elements)
inlineexplicit

Definition at line 57 of file partition.h.

Member Function Documentation

template<typename T>
void fst::internal::Partition< T >::Add ( element_id,
class_id 
)
inline

Definition at line 87 of file partition.h.

template<typename T>
T fst::internal::Partition< T >::AddClass ( )
inline

Definition at line 71 of file partition.h.

template<typename T>
void fst::internal::Partition< T >::AllocateClasses ( num_classes)
inline

Definition at line 78 of file partition.h.

template<typename T>
const T fst::internal::Partition< T >::ClassId ( element_id) const
inline

Definition at line 175 of file partition.h.

template<typename T>
const size_t fst::internal::Partition< T >::ClassSize ( class_id) const
inline

Definition at line 177 of file partition.h.

template<typename T>
template<class Queue >
void fst::internal::Partition< T >::FinalizeSplit ( Queue *  queue)
inline

Definition at line 165 of file partition.h.

template<typename T>
void fst::internal::Partition< T >::Initialize ( size_t  num_elements)
inline

Definition at line 63 of file partition.h.

template<typename T>
void fst::internal::Partition< T >::Move ( element_id,
class_id 
)
inline

Definition at line 105 of file partition.h.

template<typename T>
const T fst::internal::Partition< T >::NumClasses ( ) const
inline

Definition at line 179 of file partition.h.

template<typename T>
void fst::internal::Partition< T >::SplitOn ( element_id)
inline

Definition at line 126 of file partition.h.

Friends And Related Function Documentation

template<typename T>
friend class PartitionIterator< T >
friend

Definition at line 182 of file partition.h.


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