|
Colibri Core
|
Reference to a position in the corpus. More...
#include <datatypes.h>
Public Member Functions | |
| IndexReference () | |
| IndexReference (uint32_t sentence, uint16_t token) | |
| IndexReference (std::istream *in) | |
| IndexReference (const IndexReference &other) | |
| void | write (std::ostream *out) const |
| bool | operator< (const IndexReference &other) const |
| bool | operator> (const IndexReference &other) const |
| bool | operator== (const IndexReference &other) const |
| bool | operator!= (const IndexReference &other) const |
| IndexReference | operator+ (const int other) const |
| std::string | tostring () const |
Public Attributes | |
| uint32_t | sentence |
| uint16_t | token |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const IndexReference &iref) |
Reference to a position in the corpus.
|
inline |
|
inline |
Constructor for a reference to a position in the corpus, sentences (or whatever other unit delimits your data) start at 1, tokens start at 0
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
| uint32_t IndexReference::sentence |
| uint16_t IndexReference::token |
1.8.10