#include <encoder.h>
Inheritance diagram for simthlib::Encoder:
Public Member Functions | |
Encoder (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl) | |
virtual | ~Encoder () |
virtual void | updateInputLengths () |
virtual void | updateOutputLengths () |
virtual void | process () |
void | startOfSimulation () |
virtual int | getDataLength (int codedLength) const =0 |
virtual int | getCodeLength (int rawLength) const =0 |
virtual void | Encode (const simth::BitSeq &bits, simth::BitSeq *encBits) const =0 |
virtual void | print (std::ostream &os) const |
Static Public Member Functions | |
static void | init (const std::string fileName, simth::Device **dev, simth::DeviceSystemIntf *sysPtr, int ID, const std::string ®ionQualifier="") |
Related Functions | |
(Note that these are not member functions.) | |
propertylist_Encoder (not_a_function) |
Abstract base class which provides an interface for particularly derived coder classes.
|
|
|
|
|
Encodes the given bit sequence. Implemented in simthlib::ReedSolomonEncoder, simthlib::ConvEncoder, simthlib::PunctConvEncoder, and simthlib::DapskEncoder. |
|
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.
Implemented in simthlib::ReedSolomonEncoder, simthlib::ConvEncoder, simthlib::PunctConvEncoder, and simthlib::DapskEncoder. |
|
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.
Implemented in simthlib::ReedSolomonEncoder, simthlib::ConvEncoder, simthlib::PunctConvEncoder, and simthlib::DapskEncoder. |
|
|
|
Reimplemented from simth::Device. Reimplemented in simthlib::ConvEncoder, and simthlib::DapskEncoder. |
|
Implements simth::Device. |
|
Sets the input length. Reimplemented from simth::Device. |
|
Implements simth::Device. Reimplemented in simthlib::ReedSolomonEncoder. |
|
Implements simth::Device. Reimplemented in simthlib::ReedSolomonEncoder. |
|
These are the properties of class Encoder . This list is auto-generated from the XML-Devicelist of this device by means of an XSLT transformation script. Description of this device in the XML file: Base class for the usual encoder block in a simulation system. Note that this class also has the Properties of its base classes. The direct base class is simth::Device ; direct link to its propertylist should be propertylist_Device(). The list below usually includes the properties that have been inherited from the base classes; the properties which belong only to this class can be found at the end of this list.
|