0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::StringDecompressorPrefix Class Reference

A class to decompress prefix-compressed strings. More...

#include <StringDecompressorPrefix.h>

Collaboration diagram for Hypertable::StringDecompressorPrefix:
Collaboration graph
[legend]

Public Member Functions

 StringDecompressorPrefix ()
 Constructor; creates a new decompressor. More...
 
virtual void reset ()
 Resets and clears the internal state. More...
 
virtual const uint8_t * add (const uint8_t *next_base)
 Adds (and decompresses) a compressed string. More...
 
virtual size_t length () const
 Returns the length of the compressed string. More...
 
virtual size_t length_uncompressed () const
 Returns the length of the uncompressed string. More...
 
virtual void load (String &str) const
 Returns the uncompressed string. More...
 

Private Attributes

String m_last_string
 The uncompressed string; use load to retrieve it. More...
 
size_t m_compressed_len
 Length of the compressed string. More...
 

Detailed Description

A class to decompress prefix-compressed strings.

Definition at line 41 of file StringDecompressorPrefix.h.

Constructor & Destructor Documentation

Hypertable::StringDecompressorPrefix::StringDecompressorPrefix ( )
inline

Constructor; creates a new decompressor.

Definition at line 44 of file StringDecompressorPrefix.h.

Member Function Documentation

virtual const uint8_t* Hypertable::StringDecompressorPrefix::add ( const uint8_t *  next_base)
inlinevirtual

Adds (and decompresses) a compressed string.

The string must have been compressed with StringCompressorPrefix.

Parameters
next_basePointer to the compressed string
Returns
An advanced pointer to the next string

Definition at line 60 of file StringDecompressorPrefix.h.

virtual size_t Hypertable::StringDecompressorPrefix::length ( ) const
inlinevirtual

Returns the length of the compressed string.

Definition at line 74 of file StringDecompressorPrefix.h.

virtual size_t Hypertable::StringDecompressorPrefix::length_uncompressed ( ) const
inlinevirtual

Returns the length of the uncompressed string.

Definition at line 79 of file StringDecompressorPrefix.h.

virtual void Hypertable::StringDecompressorPrefix::load ( String str) const
inlinevirtual

Returns the uncompressed string.

Definition at line 84 of file StringDecompressorPrefix.h.

virtual void Hypertable::StringDecompressorPrefix::reset ( )
inlinevirtual

Resets and clears the internal state.

Definition at line 49 of file StringDecompressorPrefix.h.

Member Data Documentation

size_t Hypertable::StringDecompressorPrefix::m_compressed_len
private

Length of the compressed string.

Definition at line 93 of file StringDecompressorPrefix.h.

String Hypertable::StringDecompressorPrefix::m_last_string
private

The uncompressed string; use load to retrieve it.

Definition at line 90 of file StringDecompressorPrefix.h.


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