CodeBlock Class Reference

A template for storing runtime coding values of given integers into a BitBlock. More...

#include <CodeBlock.h>

Inheritance diagram for CodeBlock:
BitBlock< unsigned int > CodeBuffer< T > CodeBuffer< TRIPLET > Decode< T > Encode< T > Decode< TRIPLET > EncodeDouble< T >

List of all members.

Public Member Functions

void binary (int val, int size)
 Encode a value in binary, given the number of bits.
int unbinary (int size)
 Decode a binary value, given the number of bits used.
void unary (int val)
 Encode a value in unary.
int ununary (void)
 Decode a unary value.
void gamma (int val)
 Encode a value in gamma.
int ungamma (void)
 Decode a gamma value.
void delta (int val)
 Encode a value in delta.
int undelta (void)
 Decode a delta value.

Detailed Description

A template for storing runtime coding values of given integers into a BitBlock.

This class allows the user to compute binary, unary, gamma, and delta codes for given integers and stores them in a BitBlock. The user is also able to decode the integer using the given coding methods.

Author
lapark
Revision
1.3
Date
2009/10/08 06:41:29
Id
CodeBlock.h,v 1.3 2009/10/08 06:41:29 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:10 2009 for textIR by  doxygen 1.6.1