bm::decoder_base Class Reference

Search Toolkit Book for bm::decoder_base

#include <encoding.h>

Inheritance diagram for bm::decoder_base:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for all decoding functionality.

Definition at line 74 of file encoding.h.

Public Member Functions

 decoder_base (const unsigned char *buf)
unsigned char get_8 ()
 Reads character from the decoding buffer.
unsigned size () const
 Returns size of the current decoding stream.
void seek (int delta)
 change current position

Protected Attributes

const unsigned char * buf_
const unsigned char * start_


Constructor & Destructor Documentation

bm::decoder_base::decoder_base const unsigned char *  buf  )  [inline]
 

Definition at line 77 of file encoding.h.

References buf_, and start_.


Member Function Documentation

unsigned char bm::decoder_base::get_8  )  [inline]
 

Reads character from the decoding buffer.

Definition at line 79 of file encoding.h.

References buf_.

Referenced by bm::operation_deserializer< BV >::deserialize(), and bm::deserialize().

void bm::decoder_base::seek int  delta  )  [inline]
 

change current position

Definition at line 85 of file encoding.h.

References buf_.

Referenced by bm::decoder_little_endian::get_16(), bm::decoder::get_16(), bm::decoder_little_endian::get_32(), and bm::decoder::get_32().

unsigned bm::decoder_base::size void   )  const [inline]
 

Returns size of the current decoding stream.

Definition at line 82 of file encoding.h.

References buf_, and start_.


Member Data Documentation

const unsigned char* bm::decoder_base::buf_ [protected]
 

Definition at line 87 of file encoding.h.

Referenced by decoder_base(), bm::decoder_little_endian::get_16(), bm::decoder::get_16(), bm::decoder_little_endian::get_32(), bm::decoder::get_32(), get_8(), seek(), and size().

const unsigned char* bm::decoder_base::start_ [protected]
 

Definition at line 88 of file encoding.h.

Referenced by decoder_base(), and size().


The documentation for this class was generated from the following file:
Generated on Wed Dec 9 08:16:17 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:20:18 2009 by modify_doxy.py rev. 173732