#include <fst/queue.h>
Inherits QueueBase< Q::StateId >.

Public Types | |
| typedef Q::StateId | StateId |
| typedef L::Weight | Weight |
Public Member Functions | |
| PruneQueue (const vector< Weight > &distance, Q *queue, L comp, const C &class_func, Weight threshold) | |
| ~PruneQueue () | |
| StateId | Head () const |
| void | Enqueue (StateId s) |
| void | Dequeue () |
| void | Update (StateId s) |
| bool | Empty () const |
| void | Clear () |
Pruning queue discipline: Enqueues a state 's' only when its shortest distance (so far), as specified by 'distance', is less than (as specified by 'comp') the shortest distance Times() the 'threshold' to any state in the same equivalence class, as specified by the function object 'class_func'. The underlying queue discipline is specified by 'queue'. The ownership of 'queue' is given to this class.
Definition at line 802 of file queue.h.
| typedef Q::StateId fst::PruneQueue< Q, L, C >::StateId |
Reimplemented from fst::QueueBase< Q::StateId >.
Reimplemented in fst::NaturalPruneQueue< Q, W, C >.
| typedef L::Weight fst::PruneQueue< Q, L, C >::Weight |
Reimplemented in fst::NaturalPruneQueue< Q, W, C >.
| fst::PruneQueue< Q, L, C >::PruneQueue | ( | const vector< Weight > & | distance, | |
| Q * | queue, | |||
| L | comp, | |||
| const C & | class_func, | |||
| Weight | threshold | |||
| ) | [inline] |
| fst::PruneQueue< Q, L, C >::~PruneQueue | ( | ) | [inline] |
| void fst::PruneQueue< Q, L, C >::Clear | ( | ) | [inline] |
Reimplemented from fst::QueueBase< Q::StateId >.
| void fst::PruneQueue< Q, L, C >::Dequeue | ( | ) | [inline] |
Reimplemented from fst::QueueBase< Q::StateId >.
| bool fst::PruneQueue< Q, L, C >::Empty | ( | ) | const [inline] |
Reimplemented from fst::QueueBase< Q::StateId >.
| void fst::PruneQueue< Q, L, C >::Enqueue | ( | StateId | s | ) | [inline] |
| StateId fst::PruneQueue< Q, L, C >::Head | ( | ) | const [inline] |
Reimplemented from fst::QueueBase< Q::StateId >.
| void fst::PruneQueue< Q, L, C >::Update | ( | StateId | s | ) | [inline] |
1.7.1