Xpace
Xpace::CompressibleInt< N, B > Class Template Reference

#include <compress.h>

Public Types

typedef N type
 
typedef CompressibleInt< BbaseType
 
typedef CompressibleInt< SIGN(N), N > diffType
 
typedef CompressibleInt< UNSIGN(N), N > normType
 

Public Member Functions

 CompressibleInt (N n=0)
 
 CompressibleInt (MemBitStream *b, BytePool *)
 
 operator N () const
 
 operator CompressibleInt< CHANGE_SIGN (N)
 
 B () const
 
bool operator== (const CompressibleInt< N, B > &rhs)
 
bool operator!= (const CompressibleInt< N, B > &rhs)
 
bool operator> (const CompressibleInt< N, B > &rhs)
 
bool operator< (const CompressibleInt< N, B > &rhs)
 
diffType diff (const CompressibleInt< N, B > &rhs, BytePool *=0) const
 
operator- (const CompressibleInt< N, B > &rhs)
 
sum (diffType rhs, BytePool *=0)
 
CompressibleInt< N, B > & operator+ (diffType rhs)
 
CompressibleInt< N, B > & operator++ ()
 
CompressibleInt< N, B > & operator+= (N n)
 
 UNSIGN (N) operator/(uint d) const
 
size_t bitsNeeded () const
 
bool addBits (size_t bits, MemBitStream *b) const
 
size_t lenVar () const
 
bool addVar (MemBitStream *b) const
 

Static Public Member Functions

static N min ()
 
static N max ()
 
template<typename T , typename LIST >
static uint32 GCF (const LIST &list, T minVal=0)
 
static bool writeGCF (uint32 gcf, MemBitStream *b)
 
static uint32 readGCF (MemBitStream *b)
 
static N getBits (MemBitStream *b, size_t numBits, BytePool *=0)
 
static N getVar (MemBitStream *b, BytePool *=0)
 

Detailed Description

template<typename N, typename B = N>
class Xpace::CompressibleInt< N, B >

Definition at line 21 of file compress.h.

Member Typedef Documentation

template<typename N, typename B = N>
typedef N Xpace::CompressibleInt< N, B >::type

Definition at line 24 of file compress.h.

template<typename N, typename B = N>
typedef CompressibleInt<B> Xpace::CompressibleInt< N, B >::baseType

Definition at line 25 of file compress.h.

template<typename N, typename B = N>
typedef CompressibleInt<SIGN(N), N> Xpace::CompressibleInt< N, B >::diffType

Definition at line 26 of file compress.h.

template<typename N, typename B = N>
typedef CompressibleInt<UNSIGN(N), N> Xpace::CompressibleInt< N, B >::normType

Definition at line 27 of file compress.h.

Constructor & Destructor Documentation

template<typename N, typename B = N>
Xpace::CompressibleInt< N, B >::CompressibleInt ( n = 0)
inline

Definition at line 30 of file compress.h.

Referenced by Xpace::CompressibleInt< int64 >::CompressibleInt().

template<typename N, typename B = N>
Xpace::CompressibleInt< N, B >::CompressibleInt ( MemBitStream *  b,
BytePool *   
)
inline

Definition at line 36 of file compress.h.

Member Function Documentation

template<typename N, typename B = N>
static N Xpace::CompressibleInt< N, B >::min ( )
inlinestatic
template<typename N, typename B = N>
static N Xpace::CompressibleInt< N, B >::max ( )
inlinestatic
template<typename N, typename B = N>
Xpace::CompressibleInt< N, B >::operator N ( ) const
inline

Definition at line 54 of file compress.h.

template<typename N, typename B = N>
Xpace::CompressibleInt< N, B >::operator CompressibleInt< CHANGE_SIGN ( )
template<typename N, typename B = N>
Xpace::CompressibleInt< N, B >::B ( ) const
inline

Definition at line 61 of file compress.h.

template<typename N, typename B = N>
bool Xpace::CompressibleInt< N, B >::operator== ( const CompressibleInt< N, B > &  rhs)
inline

Definition at line 68 of file compress.h.

template<typename N, typename B = N>
bool Xpace::CompressibleInt< N, B >::operator!= ( const CompressibleInt< N, B > &  rhs)
inline

Definition at line 73 of file compress.h.

template<typename N, typename B = N>
bool Xpace::CompressibleInt< N, B >::operator> ( const CompressibleInt< N, B > &  rhs)
inline

Definition at line 78 of file compress.h.

template<typename N, typename B = N>
bool Xpace::CompressibleInt< N, B >::operator< ( const CompressibleInt< N, B > &  rhs)
inline

Definition at line 83 of file compress.h.

template<typename N, typename B = N>
diffType Xpace::CompressibleInt< N, B >::diff ( const CompressibleInt< N, B > &  rhs,
BytePool *  = 0 
) const
inline
template<typename N, typename B = N>
N Xpace::CompressibleInt< N, B >::operator- ( const CompressibleInt< N, B > &  rhs)
inline

Definition at line 96 of file compress.h.

template<typename N, typename B = N>
CompressibleInt<N, B>& Xpace::CompressibleInt< N, B >::operator+ ( diffType  rhs)
inline

Definition at line 107 of file compress.h.

template<typename N, typename B = N>
CompressibleInt<N, B>& Xpace::CompressibleInt< N, B >::operator++ ( )
inline

Definition at line 113 of file compress.h.

template<typename N, typename B = N>
CompressibleInt<N, B>& Xpace::CompressibleInt< N, B >::operator+= ( n)
inline

Definition at line 119 of file compress.h.

template<typename N , typename B >
template<typename T , typename LIST >
uint32 Xpace::CompressibleInt< N, B >::GCF ( const LIST &  list,
minVal = 0 
)
inlinestatic
template<typename N, typename B = N>
static bool Xpace::CompressibleInt< N, B >::writeGCF ( uint32  gcf,
MemBitStream *  b 
)
inlinestatic
template<typename N, typename B = N>
static uint32 Xpace::CompressibleInt< N, B >::readGCF ( MemBitStream *  b)
inlinestatic
template<typename N, typename B = N>
Xpace::CompressibleInt< N, B >::UNSIGN ( ) const
inline

Definition at line 141 of file compress.h.

Referenced by Xpace::CompressibleInt< int64 >::UNSIGN().

template<typename N, typename B = N>
size_t Xpace::CompressibleInt< N, B >::bitsNeeded ( ) const
inline
template<typename N, typename B = N>
bool Xpace::CompressibleInt< N, B >::addBits ( size_t  bits,
MemBitStream *  b 
) const
inline
template<typename N, typename B = N>
size_t Xpace::CompressibleInt< N, B >::lenVar ( ) const
inline
template<typename N, typename B = N>
bool Xpace::CompressibleInt< N, B >::addVar ( MemBitStream *  b) const
inline
template<typename N, typename B = N>
static N Xpace::CompressibleInt< N, B >::getBits ( MemBitStream *  b,
size_t  numBits,
BytePool *  = 0 
)
inlinestatic
template<typename N, typename B = N>
static N Xpace::CompressibleInt< N, B >::getVar ( MemBitStream *  b,
BytePool *  = 0 
)
inlinestatic

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

current as of Wed Jun 10 2026 12:00:06