dlvhex  2.5.0
bm::bit_out< TEncoder > Class Template Reference

Byte based writer for un-aligned bit streaming. More...

#include <vs10/bm/encoding.h>

Public Member Functions

 bit_out (TEncoder &dest)
 ~bit_out ()
void put_bit (unsigned value)
void put_bits (unsigned value, unsigned count)
void put_zero_bit ()
void put_zero_bits (register unsigned count)
void gamma (unsigned value)
void flush ()
 bit_out (TEncoder &dest)
 ~bit_out ()
void put_bit (unsigned value)
void put_bits (unsigned value, unsigned count)
void put_zero_bit ()
void put_zero_bits (register unsigned count)
void gamma (unsigned value)
void flush ()

Private Member Functions

void flush_accum ()
 bit_out (const bit_out &)
bit_outoperator= (const bit_out &)
void flush_accum ()
 bit_out (const bit_out &)
bit_outoperator= (const bit_out &)

Private Attributes

TEncoder & dest_
 Bit stream target.
unsigned used_bits_
 Bits used in the accumulator.
unsigned accum_
 write bit accumulator

Detailed Description

template<class TEncoder>
class bm::bit_out< TEncoder >

Byte based writer for un-aligned bit streaming.

See also:
encoder

Definition at line 141 of file encoding.h.


Constructor & Destructor Documentation

template<class TEncoder >
bm::bit_out< TEncoder >::bit_out ( TEncoder &  dest) [inline]

Definition at line 144 of file encoding.h.

template<class TEncoder >
bm::bit_out< TEncoder >::~bit_out ( ) [inline]
template<class TEncoder >
bm::bit_out< TEncoder >::bit_out ( const bit_out< TEncoder > &  ) [private]
template<class TEncoder >
bm::bit_out< TEncoder >::bit_out ( TEncoder &  dest) [inline]

Definition at line 144 of file encoding.h.

template<class TEncoder >
bm::bit_out< TEncoder >::~bit_out ( ) [inline]
template<class TEncoder >
bm::bit_out< TEncoder >::bit_out ( const bit_out< TEncoder > &  ) [private]

Member Function Documentation

template<class TEncoder >
void bm::bit_out< TEncoder >::flush ( ) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::flush ( ) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::flush_accum ( ) [inline, private]
template<class TEncoder >
void bm::bit_out< TEncoder >::gamma ( unsigned  value) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::gamma ( unsigned  value) [inline]
template<class TEncoder >
bit_out& bm::bit_out< TEncoder >::operator= ( const bit_out< TEncoder > &  ) [private]
template<class TEncoder >
bit_out& bm::bit_out< TEncoder >::operator= ( const bit_out< TEncoder > &  ) [private]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_bit ( unsigned  value) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_bit ( unsigned  value) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_bits ( unsigned  value,
unsigned  count 
) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_bits ( unsigned  value,
unsigned  count 
) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_zero_bit ( ) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_zero_bit ( ) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_zero_bits ( register unsigned  count) [inline]
template<class TEncoder >
void bm::bit_out< TEncoder >::put_zero_bits ( register unsigned  count) [inline]

Field Documentation

template<class TEncoder >
TEncoder & bm::bit_out< TEncoder >::dest_ [private]

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