Triplef_tfd Class Reference

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

#include <Triplef_tfd.h>

Inheritance diagram for Triplef_tfd:
Triple< float >

List of all members.

Public Member Functions

 Triplef_tfd (void)
 Create an empty triple.
bool indexOrder (Triple< float > &triple)
 Return true if the index is less than the given triple index.
bool positionOrder (Triple< float > &triple)
 Return true if the position is greater than the given triple position.
bool valueOrder (Triple< float > &triple)
 Return true if the value is less than the given triple value.
void assignQuantiser (Quantise *quantiser)
 Assign a Quantiser to the triple to allow encoding and decoding.
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)
 Return the quantised position value.
void position (float x)
 Assign the position value.
void value (int x)
 Assign the value value.
void encodeValue (CodeBlock *code, Triple< float > *lastElement)
 Encode the value to the given CodeBlock, knowing the last element.
void encodePosition (CodeBlock *code, Triple< float > *lastElement)
 Encode the position to the given CodeBlock, knowing the last element.
void encodeIndex (CodeBlock *code, Triple< float > *lastElement)
 Encode the index to the given CodeBlock, knowing the last element.
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< float > *lastElement)
 Decode the value from the given CodeBlock, knowing the last element.
void decodePosition (CodeBlock *code, Triple< float > *lastElement)
 Decode the position from the given CodeBlock, knowing the last element.
void decodeIndex (CodeBlock *code, Triple< float > *lastElement)
 Decode the index from the given CodeBlock, knowing the last element.
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 (term,float frequency,document) triples.

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

Author
lapark
Revision
1.2
Date
2009/10/08 06:41:30
Id
Triplef_tfd.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:18 2009 for textIR by  doxygen 1.6.1