A container class for (document,frequency,term) triples. More...
#include <Triple_dft.h>
Public Member Functions | |
Triple_dft (int doc, int ter, int freq) | |
Construct a triple with values. | |
Triple_dft (void) | |
Construct an empty triple. | |
bool | indexOrder (Triple< int > &triple) |
Compare the index order, where the value must be an int (since this one is). | |
bool | positionOrder (Triple< int > &triple) |
Compare the position order, where the value must be an int (since this one is). | |
bool | valueOrder (Triple< int > &triple) |
Compare the value order, where the value must be an int (since this one is). | |
int | index (void) |
Return the index value. | |
int | position (void) |
Return the position value. | |
int | value (void) |
Return the value value. | |
void | index (int x) |
Assign the index value. | |
void | position (int x) |
Assign the position value. | |
void | value (int x) |
Assign the value value. | |
void | encodeValue (CodeBlock *code, Triple< int > *lastElement) |
Encode the value to the CodeBlock, given the lastElement. | |
void | encodePosition (CodeBlock *code, Triple< int > *lastElement) |
Encode the position to the CodeBlock, given the lastElement. | |
void | encodeIndex (CodeBlock *code, Triple< int > *lastElement) |
Encode the index to the CodeBlock, given the lastElement. | |
void | encodeValue (CodeBlock *code) |
Encode the value to the given CodeBlock. | |
void | encodePosition (CodeBlock *code) |
Encode the position to the given CodeBlock. | |
void | encodeIndex (CodeBlock *code) |
Encode the index to the given CodeBlock. | |
void | decodeValue (CodeBlock *code, Triple< int > *lastElement) |
Decode the value from the CodeBlock, given the lastElement. | |
void | decodePosition (CodeBlock *code, Triple< int > *lastElement) |
Decode the position from the CodeBlock, given the lastElement. | |
void | decodeIndex (CodeBlock *code, Triple< int > *lastElement) |
Decode the index from the CodeBlock, given the lastElement. | |
void | decodeValue (CodeBlock *code) |
Decode the value from the CodeBlock. | |
void | decodePosition (CodeBlock *code) |
Decode the position from the CodeBlock. | |
void | decodeIndex (CodeBlock *code) |
Decode the index from the CodeBlock. |
A container class for (document,frequency,term) triples.
This class is used to store triple values where the document id is the index, the frequency value is the position and the term id is the value.