Tree Compression with Top Trees Revisited
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
BitWriter Class Reference

Unfinished, untested, unused bit writer. More...

#include <BitWriter.h>

Collaboration diagram for BitWriter:
Collaboration graph
[legend]

Public Member Functions

 BitWriter (const std::string &fn)
 
 ~BitWriter ()
 
void writeBits (int data, size_t length)
 
void writeBits (const std::vector< bool > &vec)
 
void write ()
 
void clear ()
 
void close ()
 
void dump ()
 
unsigned long long getBytesWritten ()
 

Static Public Attributes

static const int buffersize = 1024
 

Protected Member Functions

void writeBuffer ()
 

Protected Attributes

const std::string & fn
 
std::ofstream out
 
unsigned char buffer [buffersize]
 
unsigned int bufitem
 
unsigned int itempos
 
unsigned long long bytesWritten
 

Detailed Description

Unfinished, untested, unused bit writer.

Definition at line 11 of file BitWriter.h.

Constructor & Destructor Documentation

BitWriter::BitWriter ( const std::string &  fn)
inline

Definition at line 15 of file BitWriter.h.

BitWriter::~BitWriter ( )
inline

Definition at line 20 of file BitWriter.h.

Member Function Documentation

void BitWriter::clear ( )
inline

Definition at line 59 of file BitWriter.h.

void BitWriter::close ( )
inline

Definition at line 65 of file BitWriter.h.

void BitWriter::dump ( )
inline

Definition at line 69 of file BitWriter.h.

unsigned long long BitWriter::getBytesWritten ( )
inline

Definition at line 76 of file BitWriter.h.

void BitWriter::write ( )
inline

Definition at line 51 of file BitWriter.h.

void BitWriter::writeBits ( int  data,
size_t  length 
)
inline

Definition at line 26 of file BitWriter.h.

void BitWriter::writeBits ( const std::vector< bool > &  vec)
inline

Definition at line 39 of file BitWriter.h.

void BitWriter::writeBuffer ( )
inlineprotected

Definition at line 81 of file BitWriter.h.

Member Data Documentation

unsigned char BitWriter::buffer[buffersize]
protected

Definition at line 89 of file BitWriter.h.

const int BitWriter::buffersize = 1024
static

Definition at line 13 of file BitWriter.h.

unsigned int BitWriter::bufitem
protected

Definition at line 90 of file BitWriter.h.

unsigned long long BitWriter::bytesWritten
protected

Definition at line 92 of file BitWriter.h.

const std::string& BitWriter::fn
protected

Definition at line 87 of file BitWriter.h.

unsigned int BitWriter::itempos
protected

Definition at line 91 of file BitWriter.h.

std::ofstream BitWriter::out
protected

Definition at line 88 of file BitWriter.h.


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