Triple_dtf Class Reference

A container class for (document,term,frequency) triples. More...

#include <Triple_dtf.h>

Inheritance diagram for Triple_dtf:
Triple< int >

List of all members.

Public Member Functions

 Triple_dtf (int doc, int ter, int freq)
 Initialise the triple with values.
 Triple_dtf (void)
 Create and empty triple.
bool indexOrder (Triple< int > &triple)
 Return true if the index value is less than the give triple index.
bool positionOrder (Triple< int > &triple)
 Return true if the position value is less than the give triple position.
bool valueOrder (Triple< int > &triple)
 Return true if the value value is less than the give triple value.
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)
 Encodes the value into the provided CodeBlock, knowing the lastElement.
void encodePosition (CodeBlock *code, Triple< int > *lastElement)
 Encodes the position into the provided CodeBlock, knowing the lastElement.
void encodeIndex (CodeBlock *code, Triple< int > *lastElement)
 Encodes the index into the provided CodeBlock, knowing 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)
 Decodes the value into the provided CodeBlock, knowing the lastElement.
void decodePosition (CodeBlock *code, Triple< int > *lastElement)
 Decodes the position into the provided CodeBlock, knowing the lastElement.
void decodeIndex (CodeBlock *code, Triple< int > *lastElement)
 Decodes the index into the provided CodeBlock, knowing 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.

Detailed Description

A container class for (document,term,frequency) triples.

This class is used to store triple values where the document id is the index, the term id is the position and the frequency is the value.

Author
lapark
Revision
1.2
Date
2009/10/08 06:41:30
Id
Triple_dtf.h,v 1.2 2009/10/08 06:41:30 lapark Exp

The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:17 2009 for textIR by  doxygen 1.6.1