Octane v1.01.20 - The Open Compression Toolkit for C++ http://octane.sourceforge.net/
Homepage | Main | Modules | Class Hierarchy | Compound List | File List | Compound Members | Related Pages

null_bitreader Class Reference
[bitio]

#include <bitreaders.hpp>

Inheritance diagram for null_bitreader:

bitreader List of all members.

Detailed Description

Specialization without data.

Always returns zero.

Definition at line 29 of file bitreaders.hpp.

Public Member Functions

 null_bitreader (size_t size_in_bits=0)
 Constructor with optional size specification.

bool supports_seek () const
 Check if seek functions are supported.


Protected Member Functions

char read_next_byte ()
 Defines the method of reading a single byte of input.


Constructor & Destructor Documentation

null_bitreader::null_bitreader size_t  size_in_bits = 0  )  [inline]
 

Constructor with optional size specification.

Parameters:
size_in_bits - the number of bits available.

Definition at line 34 of file bitreaders.hpp.

00034 : bitreader(size_in_bits) { ; }


Member Function Documentation

bool null_bitreader::supports_seek  )  const [inline, virtual]
 

Check if seek functions are supported.

Returns:
true if seek functions are supported.

Implements bitreader.

Definition at line 38 of file bitreaders.hpp.

00038 { return false; }

char null_bitreader::read_next_byte  )  [inline, protected, virtual]
 

Defines the method of reading a single byte of input.

Derived classes must implement this function.

Returns:
the next byte (8 bits) from the input.

Implements bitreader.

Definition at line 41 of file bitreaders.hpp.

00041 { return 0; }


The documentation for this class was generated from the following file:  
Generated on 20 May 2004 by doxygen 1.3.3