FST
openfst-1.8.4
OpenFst Library
|
#include <interval-set.h>
Public Types | |
using | Interval = IntInterval< T > |
Public Member Functions | |
IntervalSet (std::initializer_list< Interval > intervals_init) | |
template<class... A> | |
IntervalSet (A...args) | |
std::vector< Interval > * | MutableIntervals () |
const Interval * | Intervals () const |
bool | Empty () const |
T | Size () const |
T | Count () const |
void | Clear () |
void | Union (const IntervalSet< T, Store > &iset) |
bool | Member (T value) const |
bool | operator== (const IntervalSet< T, Store > &iset) const |
bool | operator!= (const IntervalSet< T, Store > &iset) const |
bool | Singleton () const |
void | Normalize () |
void | Intersect (const IntervalSet< T, Store > &iset, IntervalSet< T, Store > *oset) const |
void | Complement (T maxval, IntervalSet< T, Store > *oset) const |
void | Difference (const IntervalSet< T, Store > &iset, IntervalSet< T, Store > *oset) const |
bool | Overlaps (const IntervalSet< T, Store > &iset) const |
bool | StrictlyOverlaps (const IntervalSet< T, Store > &iset) const |
bool | Contains (const IntervalSet< T, Store > &iset) const |
std::istream & | Read (std::istream &strm) |
std::ostream & | Write (std::ostream &strm) const |
Store::Iterator | begin () const |
Store::Iterator | end () const |
Definition at line 123 of file interval-set.h.
using fst::IntervalSet< T, Store >::Interval = IntInterval<T> |
Definition at line 125 of file interval-set.h.
|
inline |
Definition at line 127 of file interval-set.h.
|
inlineexplicit |
Definition at line 131 of file interval-set.h.
|
inline |
Definition at line 219 of file interval-set.h.
|
inline |
Definition at line 148 of file interval-set.h.
void fst::IntervalSet< T, Store >::Complement | ( | T | maxval, |
IntervalSet< T, Store > * | oset | ||
) | const |
Definition at line 282 of file interval-set.h.
bool fst::IntervalSet< T, Store >::Contains | ( | const IntervalSet< T, Store > & | iset | ) | const |
Definition at line 382 of file interval-set.h.
|
inline |
Definition at line 146 of file interval-set.h.
void fst::IntervalSet< T, Store >::Difference | ( | const IntervalSet< T, Store > & | iset, |
IntervalSet< T, Store > * | oset | ||
) | const |
Definition at line 308 of file interval-set.h.
|
inline |
Definition at line 141 of file interval-set.h.
|
inline |
Definition at line 221 of file interval-set.h.
void fst::IntervalSet< T, Store >::Intersect | ( | const IntervalSet< T, Store > & | iset, |
IntervalSet< T, Store > * | oset | ||
) | const |
Definition at line 253 of file interval-set.h.
|
inline |
Definition at line 139 of file interval-set.h.
|
inline |
Definition at line 158 of file interval-set.h.
|
inline |
Definition at line 134 of file interval-set.h.
void fst::IntervalSet< T, Store >::Normalize | ( | ) |
Definition at line 229 of file interval-set.h.
|
inline |
Definition at line 173 of file interval-set.h.
|
inline |
Definition at line 166 of file interval-set.h.
bool fst::IntervalSet< T, Store >::Overlaps | ( | const IntervalSet< T, Store > & | iset | ) | const |
Definition at line 323 of file interval-set.h.
|
inline |
Definition at line 213 of file interval-set.h.
|
inline |
Definition at line 179 of file interval-set.h.
|
inline |
Definition at line 143 of file interval-set.h.
bool fst::IntervalSet< T, Store >::StrictlyOverlaps | ( | const IntervalSet< T, Store > & | iset | ) | const |
Definition at line 341 of file interval-set.h.
|
inline |
Definition at line 151 of file interval-set.h.
|
inline |
Definition at line 215 of file interval-set.h.