Geant4  10.01.p01
G4OutBitStream Class Reference

#include <G4RTOutBitStream.hh>

Public Member Functions

 G4OutBitStream (int size)
 
 ~G4OutBitStream ()
 
void SetBits (int v, int numBits)
 
void SetByte (u_char dat)
 
void SetWord (u_int dat)
 
void CopyByte (const char *src, int n)
 
u_charGetStreamAddress (void)
 
int GetStreamSize (void)
 

Protected Member Functions

void IncBuf (void)
 
void FullBit (void)
 
void Set8Bits (u_char v, int numBits)
 
void SetFewBits (u_char v, int numBits)
 
void SetBits2Byte (u_char v, int numBits)
 

Protected Attributes

u_charmHeadOfBuf
 
u_charmBuf
 
u_charmEndOfBuf
 
int mBitPos
 
int mWriteFlag
 

Detailed Description

Definition at line 44 of file G4RTOutBitStream.hh.

Constructor & Destructor Documentation

G4OutBitStream::G4OutBitStream ( int  size)

Definition at line 38 of file G4RTOutBitStream.cc.

References mBitPos, mBuf, mEndOfBuf, mHeadOfBuf, and mWriteFlag.

G4OutBitStream::~G4OutBitStream ( )

Definition at line 55 of file G4RTOutBitStream.cc.

References mBuf.

Member Function Documentation

void G4OutBitStream::CopyByte ( const char *  src,
int  n 
)

Definition at line 158 of file G4RTOutBitStream.cc.

References FullBit(), mBuf, mEndOfBuf, and n.

Referenced by G4JpegCoder::WriteHeader().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OutBitStream::FullBit ( void  )
protected

Definition at line 125 of file G4RTOutBitStream.cc.

References BitFullMaskT, mBitPos, and SetFewBits().

Referenced by CopyByte(), SetByte(), and SetWord().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u_char* G4OutBitStream::GetStreamAddress ( void  )
inline

Definition at line 54 of file G4RTOutBitStream.hh.

References mHeadOfBuf.

Referenced by G4JpegCoder::GetJpegData().

+ Here is the caller graph for this function:

int G4OutBitStream::GetStreamSize ( void  )
inline

Definition at line 55 of file G4RTOutBitStream.hh.

Referenced by G4JpegCoder::GetJpegData().

+ Here is the caller graph for this function:

void G4OutBitStream::IncBuf ( void  )
protected

Definition at line 61 of file G4RTOutBitStream.cc.

References mBuf, mEndOfBuf, and mWriteFlag.

Referenced by SetBits2Byte(), SetByte(), SetFewBits(), and SetWord().

+ Here is the caller graph for this function:

void G4OutBitStream::Set8Bits ( u_char  v,
int  numBits 
)
protected

Definition at line 115 of file G4RTOutBitStream.cc.

References mBitPos, SetBits2Byte(), and SetFewBits().

Referenced by SetBits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OutBitStream::SetBits ( int  v,
int  numBits 
)

Definition at line 70 of file G4RTOutBitStream.cc.

References Set8Bits().

Referenced by G4JpegCoder::CodeHuffman().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OutBitStream::SetBits2Byte ( u_char  v,
int  numBits 
)
protected

Definition at line 99 of file G4RTOutBitStream.cc.

References BitFullMaskT, IncBuf(), mBitPos, and mBuf.

Referenced by Set8Bits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OutBitStream::SetByte ( u_char  dat)

Definition at line 132 of file G4RTOutBitStream.cc.

References FullBit(), IncBuf(), mBuf, and mWriteFlag.

Referenced by G4JpegCoder::WriteEOI(), and G4JpegCoder::WriteHeader().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OutBitStream::SetFewBits ( u_char  v,
int  numBits 
)
protected

Definition at line 84 of file G4RTOutBitStream.cc.

References BitFullMaskT, IncBuf(), mBitPos, and mBuf.

Referenced by FullBit(), and Set8Bits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OutBitStream::SetWord ( u_int  dat)

Definition at line 144 of file G4RTOutBitStream.cc.

References FullBit(), IncBuf(), mBuf, and mWriteFlag.

Referenced by G4JpegCoder::WriteHeader().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

int G4OutBitStream::mBitPos
protected

Definition at line 62 of file G4RTOutBitStream.hh.

Referenced by FullBit(), G4OutBitStream(), Set8Bits(), SetBits2Byte(), and SetFewBits().

u_char* G4OutBitStream::mBuf
protected
u_char* G4OutBitStream::mEndOfBuf
protected

Definition at line 61 of file G4RTOutBitStream.hh.

Referenced by CopyByte(), G4OutBitStream(), and IncBuf().

u_char* G4OutBitStream::mHeadOfBuf
protected

Definition at line 55 of file G4RTOutBitStream.hh.

Referenced by G4OutBitStream(), and GetStreamAddress().

int G4OutBitStream::mWriteFlag
protected

Definition at line 63 of file G4RTOutBitStream.hh.

Referenced by G4OutBitStream(), IncBuf(), SetByte(), and SetWord().


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