FST
openfst-1.8.2.post1
OpenFst Library
|
#include <sparse-tuple-weight.h>
Public Types | |
using | ReverseWeight = SparseTupleWeight< typename W::ReverseWeight, K > |
using | Iterator = SparseTupleWeightIterator< W, K > |
using | Pair = std::pair< K, W > |
using | Weight = W |
using | Index = K |
Public Member Functions | |
SparseTupleWeight () | |
~SparseTupleWeight () noexcept=default | |
template<class Iterator > | |
SparseTupleWeight (Iterator begin, Iterator end) | |
SparseTupleWeight (const K &key, const W &weight, const W &default_weight) | |
SparseTupleWeight (const W &weight) | |
SparseTupleWeight (const SparseTupleWeight &weight) | |
SparseTupleWeight (SparseTupleWeight &&weight) noexcept | |
std::istream & | Read (std::istream &strm) |
std::ostream & | Write (std::ostream &strm) const |
SparseTupleWeight & | operator= (const SparseTupleWeight &weight) |
SparseTupleWeight & | operator= (SparseTupleWeight &&weight) noexcept |
bool | Member () const |
size_t | Hash () const |
SparseTupleWeight | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
void | Init (const W &default_value=W::Zero()) |
size_t | Size () const |
void | PushBack (const K &key, const W &weight, bool default_value_check=true) |
void | PushBack (const Pair &pair, bool default_value_check=true) |
const W & | Value (const K &key) const |
void | SetValue (const K &key, const W &w) |
void | SetDefaultValue (const W &value) |
const W & | DefaultValue () const |
Static Public Member Functions | |
static const SparseTupleWeight & | Zero () |
static const SparseTupleWeight & | One () |
static const SparseTupleWeight & | NoWeight () |
Static Public Attributes | |
static constexpr K | kNoKey = -1 |
Friends | |
class | SparseTupleWeightIterator< W, K > |
Definition at line 50 of file sparse-tuple-weight.h.
using fst::SparseTupleWeight< W, K >::Index = K |
Definition at line 57 of file sparse-tuple-weight.h.
using fst::SparseTupleWeight< W, K >::Iterator = SparseTupleWeightIterator<W, K> |
Definition at line 54 of file sparse-tuple-weight.h.
using fst::SparseTupleWeight< W, K >::Pair = std::pair<K, W> |
Definition at line 55 of file sparse-tuple-weight.h.
using fst::SparseTupleWeight< W, K >::ReverseWeight = SparseTupleWeight<typename W::ReverseWeight, K> |
Definition at line 52 of file sparse-tuple-weight.h.
using fst::SparseTupleWeight< W, K >::Weight = W |
Definition at line 56 of file sparse-tuple-weight.h.
|
inline |
Definition at line 61 of file sparse-tuple-weight.h.
|
defaultnoexcept |
|
inline |
Definition at line 66 of file sparse-tuple-weight.h.
|
inline |
Definition at line 74 of file sparse-tuple-weight.h.
|
inlineexplicit |
Definition at line 78 of file sparse-tuple-weight.h.
|
inline |
Definition at line 80 of file sparse-tuple-weight.h.
|
inlinenoexcept |
Definition at line 88 of file sparse-tuple-weight.h.
|
inline |
Definition at line 231 of file sparse-tuple-weight.h.
|
inline |
Definition at line 157 of file sparse-tuple-weight.h.
|
inline |
Definition at line 183 of file sparse-tuple-weight.h.
|
inline |
Definition at line 148 of file sparse-tuple-weight.h.
|
inlinestatic |
Definition at line 109 of file sparse-tuple-weight.h.
|
inlinestatic |
Definition at line 104 of file sparse-tuple-weight.h.
|
inline |
Definition at line 126 of file sparse-tuple-weight.h.
|
inlinenoexcept |
Definition at line 135 of file sparse-tuple-weight.h.
|
inline |
Definition at line 198 of file sparse-tuple-weight.h.
|
inline |
Definition at line 203 of file sparse-tuple-weight.h.
|
inline |
Definition at line 167 of file sparse-tuple-weight.h.
|
inline |
Definition at line 114 of file sparse-tuple-weight.h.
|
inline |
Definition at line 175 of file sparse-tuple-weight.h.
|
inline |
Definition at line 229 of file sparse-tuple-weight.h.
|
inline |
Definition at line 221 of file sparse-tuple-weight.h.
|
inline |
Definition at line 190 of file sparse-tuple-weight.h.
|
inline |
Definition at line 213 of file sparse-tuple-weight.h.
|
inline |
Definition at line 120 of file sparse-tuple-weight.h.
|
inlinestatic |
Definition at line 99 of file sparse-tuple-weight.h.
|
friend |
Definition at line 284 of file sparse-tuple-weight.h.
|
static |
Definition at line 59 of file sparse-tuple-weight.h.