Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Compress Class Reference

Abstract Compressor. More...

#include <Compress.hpp>

Inheritance diagram for Compress:

GammaCompress List of all members.

Public Methods

virtual void compress (ostream &os, int n, int *arr)=0
virtual int decompress (istream &is, int *arr)=0
virtual int read (istream &is)=0
virtual const string type ()=0

Detailed Description

Abstract Compressor.

Compress

Abstract interface to the compression routines used for inverted lists. Specification:

compress(os, n, arr): compresses the n integers in arr and writes to the stream os

decompress(is, arr): decompresses the bits read from is and places them in the integer array arr, returning the length of the resulting array


Member Function Documentation

virtual void Compress::compress ostream &    os,
int    n,
int *    arr
[pure virtual]
 

Implemented in GammaCompress.

virtual int Compress::decompress istream &    is,
int *    arr
[pure virtual]
 

Implemented in GammaCompress.

virtual int Compress::read istream &    is [pure virtual]
 

Implemented in GammaCompress.

virtual const string Compress::type   [pure virtual]
 

Implemented in GammaCompress.


The documentation for this class was generated from the following file:
Generated on Fri Jul 2 16:25:40 2004 for Lemur Toolkit by doxygen1.2.18