#include <contextbase.h>
Inheritance diagram for ContextBase:
Public Types | |
enum | OperationResult { Ok = 0, NotKnown = -1, TooManySymbols = -2, NoMemory = -3 } |
An enum with results of some contex operations. More... | |
Public Methods | |
ContextBase (void) | |
A constructor. | |
virtual void | setType (int, ContextType)=0 |
Initialization of the context with given size and type. | |
virtual int | initialize (void)=0 |
Initialize context. | |
virtual int | lastFixedSymbol (void)=0 |
Return the value of last fixed symbol in the context. | |
virtual bool | isInitialized (void) |
Initialize context. | |
virtual void | setArithCodec (ArithCodec *ac) |
Set arithmetic coder for the context. | |
virtual int | encode (int)=0 throw (ExaltContextNotInitializedException, ExaltIOException) |
Encode symbol using given arithmetic coder/decoder. | |
virtual int | encodeEndOfMessage ()=0 throw (ExaltContextNotInitializedException, ExaltIOException) |
Encode the "end of message" symbol. | |
virtual int | decode (void)=0 throw (ExaltContextNotInitializedException, ExaltIOException) |
Decode symbol using given arithmetic coder/decoder. | |
virtual int | installSymbol (int)=0 |
Install new symbol. | |
virtual void | purgeContext (void)=0 |
Purge the context. | |
Public Attributes | |
int | endOfMessage |
The "end of message" symbol. | |
Protected Attributes | |
ArithCodec * | arithCodec |
Pointer to arithmetic codec. | |
bool | initialized |
Flag whether the context is initialized. |
Definition at line 56 of file contextbase.h.
|
An enum with results of some contex operations.
Definition at line 63 of file contextbase.h. |