#include <encoder.h>
Inheritance diagram for simthlib::DapskEncoder:

Public Member Functions | |
| DapskEncoder (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl, int inSymbolsPerStep, int bitsPerSymbol, map_type mappMode, const simth::checkedVector< int > &polynomials, const int recursivePolynomial=0) | |
| virtual | ~DapskEncoder () |
| virtual int | getDataLength (int codedLength) const |
| virtual int | getCodeLength (int rawLength) const |
| virtual void | Encode (const simth::BitSeq &bsin, simth::BitSeq *bsout) const |
| virtual int | dataBitsPerStep () const |
| virtual int | codedBitsPerStep () const |
| virtual void | print (std::ostream &os) const |
Protected Member Functions | |
| int | bitsPerAmpl () const |
| int | bitsPerPhase () const |
| void | computeSplittedSizes (int numInSize, int *amplSize, int *phaseSize) const |
|
||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
Encodes the given bit sequence. Implements simthlib::Encoder. |
|
|
Returns the length of a coded bit sequence which is generated by the coder from a data sequence of the given length. If the data length does not fit (dataLength dataBitsPerStep() != 0) an FitErr exception is thrown, which should be caught in the scope calling the function.
Implements simthlib::Encoder. |
|
|
If the coded length does fit (codedLength codedBitsPerStep() == 0) the function the function returns the length of a data bit sequence which is encoded by the coder from a coded bit sequence of the given length. In general the function returns the maximal length of a data bit which encoded length is smaller or equal code_length.
Implements simthlib::Encoder. |
|
|
Reimplemented from simthlib::Encoder. |
1.4.1