FST
openfst-1.8.3
OpenFst Library
|
#include <sparse-power-weight.h>
Public Types | |
using | Base = SparseTupleWeight< W, K > |
using | ReverseWeight = SparsePowerWeight< typename W::ReverseWeight, K > |
Public Types inherited from fst::SparseTupleWeight< W, K > | |
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 | |
SparsePowerWeight ()=default | |
SparsePowerWeight (const Base &weight) | |
template<class Iterator > | |
SparsePowerWeight (Iterator begin, Iterator end) | |
SparsePowerWeight (const K &key, const W &weight, const W &default_weight=W::Zero()) | |
SparsePowerWeight | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
Public Member Functions inherited from fst::SparseTupleWeight< W, K > | |
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 SparsePowerWeight & | Zero () |
static const SparsePowerWeight & | One () |
static const SparsePowerWeight & | NoWeight () |
static const std::string & | Type () |
static constexpr uint64_t | Properties () |
Static Public Member Functions inherited from fst::SparseTupleWeight< W, K > | |
static const SparseTupleWeight & | Zero () |
static const SparseTupleWeight & | One () |
static const SparseTupleWeight & | NoWeight () |
Additional Inherited Members | |
Static Public Attributes inherited from fst::SparseTupleWeight< W, K > | |
static constexpr K | kNoKey = -1 |
Definition at line 49 of file sparse-power-weight.h.
using fst::SparsePowerWeight< W, K >::Base = SparseTupleWeight<W, K> |
Definition at line 51 of file sparse-power-weight.h.
using fst::SparsePowerWeight< W, K >::ReverseWeight = SparsePowerWeight<typename W::ReverseWeight, K> |
Definition at line 52 of file sparse-power-weight.h.
|
default |
|
inlineexplicit |
Definition at line 56 of file sparse-power-weight.h.
|
inline |
Definition at line 59 of file sparse-power-weight.h.
|
inline |
Definition at line 63 of file sparse-power-weight.h.
|
inlinestatic |
Definition at line 77 of file sparse-power-weight.h.
|
inlinestatic |
Definition at line 72 of file sparse-power-weight.h.
|
inlinestatic |
Definition at line 95 of file sparse-power-weight.h.
|
inline |
Definition at line 100 of file sparse-power-weight.h.
|
inline |
Definition at line 104 of file sparse-power-weight.h.
|
inlinestatic |
Definition at line 84 of file sparse-power-weight.h.
|
inlinestatic |
Definition at line 67 of file sparse-power-weight.h.