Main Page   Namespace List   Class Hierarchy   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 char* 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 * a ) [pure virtual]
 

Reimplemented in GammaCompress.

virtual int Compress::decompress ( istream & is,
int * a ) [pure virtual]
 

Reimplemented in GammaCompress.

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

Reimplemented in GammaCompress.

virtual const char* Compress::type ( ) [pure virtual]
 

Reimplemented in GammaCompress.


The documentation for this class was generated from the following file:
Generated at Fri Jul 26 18:22:44 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000