Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Private Member Functions | Private Attributes
cat::RangeEncoder Class Reference

#include <RangeCoder.hpp>

List of all members.

Public Member Functions

void BiasedBit (u32 b, u32 frequency)
bool Fail ()
void Finish ()
RangeEncoderoperator= (RangeEncoder &cp)
void Range (u32 symbol, u32 total)
 RangeEncoder (void *output_i, int limit_i)
 RangeEncoder (RangeEncoder &cp)
void Text (const char *msg, const TextStatsCollector::TableFormat *stats)
int Used ()

Private Member Functions

CAT_INLINE void GetTableSymbol (const TextStatsCollector::TableFormat *stats, u32 &last, u8 ch, u16 &symbol_low, u16 &symbol_range)
CAT_INLINE void Normalize ()

Private Attributes

int limit
u64 low
u8output
u64 range
int remaining

Detailed Description

Definition at line 139 of file RangeCoder.hpp.


Constructor & Destructor Documentation

cat::RangeEncoder::RangeEncoder ( void *  output_i,
int  limit_i 
)
cat::RangeEncoder::RangeEncoder ( RangeEncoder cp)

Member Function Documentation

void cat::RangeEncoder::BiasedBit ( u32  b,
u32  frequency 
)
bool cat::RangeEncoder::Fail ( ) [inline]

Definition at line 161 of file RangeCoder.hpp.

References output.

{ return output == 0; }
void cat::RangeEncoder::Finish ( )
CAT_INLINE void cat::RangeEncoder::GetTableSymbol ( const TextStatsCollector::TableFormat stats,
u32 last,
u8  ch,
u16 symbol_low,
u16 symbol_range 
) [private]
CAT_INLINE void cat::RangeEncoder::Normalize ( ) [private]
RangeEncoder& cat::RangeEncoder::operator= ( RangeEncoder cp)
void cat::RangeEncoder::Range ( u32  symbol,
u32  total 
)
void cat::RangeEncoder::Text ( const char *  msg,
const TextStatsCollector::TableFormat stats 
)
int cat::RangeEncoder::Used ( ) [inline]

Definition at line 162 of file RangeCoder.hpp.

References limit, and remaining.

{ return limit - remaining; }

Member Data Documentation

int cat::RangeEncoder::limit [private]

Definition at line 142 of file RangeCoder.hpp.

Referenced by Used().

Definition at line 144 of file RangeCoder.hpp.

Definition at line 141 of file RangeCoder.hpp.

Referenced by Fail().

Definition at line 144 of file RangeCoder.hpp.

Definition at line 142 of file RangeCoder.hpp.

Referenced by Used().


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net