Xpace
Xpace::CompressibleString< STR > Class Template Reference

#include <compress.h>

Classes

class  diffType
 

Public Types

typedef CompressibleString< STR > baseType
 
typedef diffType normType
 

Public Member Functions

 CompressibleString (int=0)
 
 CompressibleString (const STR &s)
 
 CompressibleString (MemBitStream *b, BytePool *pool)
 
CompressibleStringoperator= (const STR &s)
 
 operator const STR & () const
 
const STR::charType * data () const
 
size_t length () const
 
bool operator== (const CompressibleString< STR > &rhs) const
 
bool operator!= (const CompressibleString< STR > &rhs) const
 
bool operator> (const CompressibleString< STR > &rhs) const
 
bool operator< (const CompressibleString< STR > &rhs) const
 
diffType diff (const CompressibleString &, BytePool *) const
 
diffType operator- (const CompressibleString &)
 
CompressibleString sum (const diffType &, BytePool *) const
 
CompressibleString operator+ (const diffType &)
 
CompressibleStringoperator+= (const CompressibleString &)
 
CompressibleStringoperator* (uint32 rhs)
 
CompressibleStringoperator/ (uint32 rhs)
 
size_t bitsNeeded () const
 
bool addBits (size_t, MemBitStream *) const
 
size_t lenVar () const
 
virtual bool addVar (MemBitStream *b) const
 

Static Public Member Functions

static STR min ()
 
static STR max ()
 
template<typename T , typename LIST >
static uint32 GCF (const LIST &, T=0)
 
static bool writeGCF (uint32, MemBitStream *)
 
static uint32 readGCF (MemBitStream *)
 
static CompressibleString< STR > getBits (MemBitStream *, size_t)
 
static CompressibleString< STR > getVar (MemBitStream *b, BytePool *pool)
 

Friends

uint qHash (const CompressibleString &cs)
 

Detailed Description

template<typename STR>
class Xpace::CompressibleString< STR >

Definition at line 290 of file compress.h.

Member Typedef Documentation

template<typename STR>
typedef CompressibleString<STR> Xpace::CompressibleString< STR >::baseType

Definition at line 293 of file compress.h.

template<typename STR>
typedef diffType Xpace::CompressibleString< STR >::normType

Definition at line 294 of file compress.h.

Constructor & Destructor Documentation

template<typename STR>
Xpace::CompressibleString< STR >::CompressibleString ( int  = 0)
inline

Definition at line 298 of file compress.h.

template<typename STR>
Xpace::CompressibleString< STR >::CompressibleString ( const STR &  s)
inline

Definition at line 303 of file compress.h.

template<typename STR>
Xpace::CompressibleString< STR >::CompressibleString ( MemBitStream *  b,
BytePool *  pool 
)
inline

Definition at line 309 of file compress.h.

References Xpace::readString().

Member Function Documentation

template<typename STR>
CompressibleString& Xpace::CompressibleString< STR >::operator= ( const STR &  s)
inline

Definition at line 317 of file compress.h.

template<typename STR>
Xpace::CompressibleString< STR >::operator const STR & ( ) const
inline

Definition at line 324 of file compress.h.

References data.

template<typename STR>
const STR::charType* Xpace::CompressibleString< STR >::data ( ) const
inline

Definition at line 331 of file compress.h.

template<typename STR>
size_t Xpace::CompressibleString< STR >::length ( ) const
inline

Definition at line 338 of file compress.h.

References Xpace::CompressibleInt< N, B >::min().

template<typename STR>
static STR Xpace::CompressibleString< STR >::min ( )
inlinestatic

Definition at line 345 of file compress.h.

References Xpace::CompressibleInt< N, B >::max().

template<typename STR>
static STR Xpace::CompressibleString< STR >::max ( )
inlinestatic

Definition at line 350 of file compress.h.

Referenced by Xpace::CompressibleString< STR >::diffType::max().

template<typename STR>
bool Xpace::CompressibleString< STR >::operator== ( const CompressibleString< STR > &  rhs) const
inline

Definition at line 356 of file compress.h.

template<typename STR>
bool Xpace::CompressibleString< STR >::operator!= ( const CompressibleString< STR > &  rhs) const
inline

Definition at line 362 of file compress.h.

template<typename STR>
bool Xpace::CompressibleString< STR >::operator> ( const CompressibleString< STR > &  rhs) const
inline

Definition at line 368 of file compress.h.

template<typename STR>
bool Xpace::CompressibleString< STR >::operator< ( const CompressibleString< STR > &  rhs) const
inline

Definition at line 374 of file compress.h.

References Xpace::CompressibleInt< N, B >::diff().

template<typename STR >
CompressibleString< STR >::diffType Xpace::CompressibleString< STR >::diff ( const CompressibleString< STR > &  rhs,
BytePool *  pool 
) const

Definition at line 903 of file compress.h.

References len, result, and Xpace::CompressibleString< STR >::sum().

Referenced by Xpace::CompressibleInt< N, B >::GCF().

template<typename STR>
diffType Xpace::CompressibleString< STR >::operator- ( const CompressibleString< STR > &  )
inline

Definition at line 385 of file compress.h.

References Xpace::CompressibleInt< N, B >::sum().

template<typename STR >
CompressibleString< STR > Xpace::CompressibleString< STR >::sum ( const diffType rhs,
BytePool *  pool 
) const

Definition at line 926 of file compress.h.

References result.

Referenced by Xpace::CompressibleString< STR >::diff().

template<typename STR>
CompressibleString Xpace::CompressibleString< STR >::operator+ ( const diffType )
inline

Definition at line 395 of file compress.h.

template<typename STR>
CompressibleString& Xpace::CompressibleString< STR >::operator+= ( const CompressibleString< STR > &  )
template<typename STR>
CompressibleString& Xpace::CompressibleString< STR >::operator* ( uint32  rhs)
inline

Definition at line 404 of file compress.h.

template<typename STR>
CompressibleString& Xpace::CompressibleString< STR >::operator/ ( uint32  rhs)
inline

Definition at line 411 of file compress.h.

References Xpace::CompressibleInt< N, B >::GCF().

template<typename STR>
template<typename T , typename LIST >
static uint32 Xpace::CompressibleString< STR >::GCF ( const LIST &  ,
= 0 
)
inlinestatic

Definition at line 420 of file compress.h.

References Xpace::CompressibleInt< N, B >::writeGCF().

template<typename STR>
static bool Xpace::CompressibleString< STR >::writeGCF ( uint32  ,
MemBitStream *   
)
inlinestatic

Definition at line 426 of file compress.h.

References Xpace::CompressibleInt< N, B >::readGCF().

template<typename STR>
static uint32 Xpace::CompressibleString< STR >::readGCF ( MemBitStream *  )
inlinestatic

Definition at line 433 of file compress.h.

References Xpace::CompressibleInt< N, B >::bitsNeeded().

template<typename STR>
size_t Xpace::CompressibleString< STR >::bitsNeeded ( ) const
inline

Definition at line 439 of file compress.h.

References Xpace::CompressibleInt< N, B >::addBits().

template<typename STR>
bool Xpace::CompressibleString< STR >::addBits ( size_t  ,
MemBitStream *   
) const
inline

Definition at line 446 of file compress.h.

References Xpace::CompressibleInt< N, B >::lenVar().

template<typename STR>
size_t Xpace::CompressibleString< STR >::lenVar ( ) const
inline

Definition at line 455 of file compress.h.

References Xpace::CompressibleInt< N, B >::addVar(), and Xpace::stringLen().

template<typename STR>
virtual bool Xpace::CompressibleString< STR >::addVar ( MemBitStream *  b) const
inlinevirtual

Definition at line 463 of file compress.h.

References Xpace::CompressibleInt< N, B >::getBits(), and Xpace::writeString().

template<typename STR>
static CompressibleString<STR> Xpace::CompressibleString< STR >::getBits ( MemBitStream *  ,
size_t   
)
inlinestatic

Definition at line 471 of file compress.h.

References Xpace::CompressibleInt< N, B >::getVar().

template<typename STR>
static CompressibleString<STR> Xpace::CompressibleString< STR >::getVar ( MemBitStream *  b,
BytePool *  pool 
)
inlinestatic

Definition at line 480 of file compress.h.

Friends And Related Function Documentation

template<typename STR>
uint qHash ( const CompressibleString< STR > &  cs)
friend

Definition at line 487 of file compress.h.


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

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