Collection of references to position in the corpus (IndexReference). Used by Indexed Pattern models.
More...
#include <datatypes.h>
Collection of references to position in the corpus (IndexReference). Used by Indexed Pattern models.
| IndexedData::IndexedData |
( |
| ) |
|
|
inline |
| IndexedData::IndexedData |
( |
std::istream * |
in | ) |
|
| unsigned int IndexedData::count |
( |
| ) |
const |
|
inline |
Returns the number of indices in the collection, i.e. the occurrence count.
| bool IndexedData::has |
( |
const IndexReference & |
ref, |
|
|
bool |
sorted = false |
|
) |
| const |
|
inline |
| void IndexedData::reserve |
( |
size_t |
size | ) |
|
|
inline |
| std::set<int> IndexedData::sentences |
( |
| ) |
const |
|
inline |
Returns a set of all unique sentences covered by this collection of references.
Conversion to std::set<IndexReference>
| void IndexedData::shrink_to_fit |
( |
| ) |
|
|
inline |
| size_t IndexedData::size |
( |
| ) |
const |
|
inline |
| void IndexedData::sort |
( |
| ) |
|
|
inline |
Sort the indices, in-place, in proper order of occurence
| void IndexedData::write |
( |
std::ostream * |
out | ) |
const |
The documentation for this class was generated from the following file: