digest Class Reference
[Digests]

#include <Digest.h>

Inheritance diagram for digest:

Inheritance graph
[legend]

List of all members.


Detailed Description

the digest interface, no default implementations

Definition at line 54 of file Digest.h.


Public Member Functions

virtual bool contains (int item)=0
 check to see if an item is in the digest
virtual int insert (int item, int suppress=1)=0
 inserts an item
virtual void serialize (unsigned char *buffer)=0
 serializes the digest into the buffer
virtual void import (unsigned char *buffer)=0
 deserializes the buffer into the digest
virtual int size_compacted_in_bytes ()=0
 returns the size of the digest in bytes (for serialization)
virtual void reset ()=0
 resets the digest to empty
virtual int get_lowest_sequence ()=0
 returns the lowest sequence represented (yes or no) in the digest

Member Function Documentation

virtual int digest::insert ( int  item,
int  suppress = 1 
) [pure virtual]

inserts an item

Parameters:
item the item to insert
suppress when feasible, tells the filter whether to suppress dropping values
Returns:
returning the lowest sequence number remaining in the digest (even after truncation)

Implemented in bitmap_digest.

virtual void digest::serialize ( unsigned char *  buffer  )  [pure virtual]

serializes the digest into the buffer

Warning:
if the digest is to be continue being used, this should be replaced with basic mace serialization.

Implemented in bitmap_digest.

virtual void digest::import ( unsigned char *  buffer  )  [pure virtual]

deserializes the buffer into the digest

Warning:
if the digest is to be continue being used, this should be replaced with basic mace serialization.

Implemented in bitmap_digest.


The documentation for this class was generated from the following files:

Generated on Sat Oct 4 21:30:27 2008 for Mace Library by  doxygen 1.5.5