TDouble< T > Class Template Reference

A double class (document, frequency). More...

List of all members.

Public Member Functions

 TDouble (int doc, T freq)
 Initialise the double.
void operator++ (void)
 Increment the frequency.
bool operator< (TDouble< T > &triple)
 Compare to a triple for ineqality.
void operator= (Triple< T > &triple)
 Assign the triple to this double.
int position (void)
 Return the document number.
int index (void)
 Return the term number.
value (void)
 Return the frequency value.
void position (int x)
 Assign the document number.
void index (int x)
 Assign the term number.
void value (int x)
 Assign the frequency value.
int term (void)
 Return the term number.
int document (void)
 Return the document number.
frequency (void)
 Return the frequency value.
void encodeValue (CodeBlock *code, TDouble< T > *lastElement)
 Encode the value to the given CodeBlock, given the lastElement.
void encodePosition (CodeBlock *code, TDouble< T > *lastElement)
 Encode the position to the given CodeBlock, given the lastElement.
void encodeIndex (CodeBlock *code, TDouble< T > *lastElement)
 Encode the index to the given 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, TDouble< T > *lastElement)
 Decode the value from the CodeBlock, given the lastElement.
void decodePosition (CodeBlock *code, TDouble< T > *lastElement)
 Decode the position from the CodeBlock, given the lastElement.
void decodeIndex (CodeBlock *code, TDouble< T > *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.

Friends

class TDoubleSort< T >
class CodeBuffer< TDouble< T > >

Detailed Description

template<typename T>
class TDouble< T >

A double class (document, frequency).

This class provides a structure for storing and manupulating doubles (document, frequency values). This is useful for storing lists where the list index is not needed. The template parameter is the type of frequency value used.

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

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

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