#include <decoder.h>
Inheritance diagram for simthlib::TrellisDecoder:
Public Member Functions | |
TrellisDecoder (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl, std::auto_ptr< TrellisDecodingAlgorithm > algorithm_ptr, simth::SequenceType inType) | |
virtual | ~TrellisDecoder () |
virtual void | decode (const simth::BitSeq &bsin, simth::BitSeq &bsout) |
virtual void | decode (const simth::LlvSeq &llv, simth::BitSeq &bsout) |
virtual void | decode (const simth::LlrSeq &llr, simth::BitSeq &bsout) |
virtual int | getDataLength (int codedLength) const |
virtual int | getCodeLength (int rawLength) const |
virtual int | dataBitsPerStep () const |
virtual int | codedBitsPerStep () const |
virtual void | print (std::ostream &os) const |
|
Class constructor: the parameter type std::auto_ptr<Trellis> enables a 'destructive copy semantic' (see B. Stroustrup 'The C++ programming language', Ch. 14.4.2). It is important that the DecodingAlgorithm object pointed to by usedAlgorithm is constructed on the heap. Due to the auto_ptr this class takes the ownership of these objects and the object will be deleted automatically when this class is destructed itself. |
|
|
|
Returns the coded output bits per step of the associated encoder, i.e. the number of input bits per step of this decoder. Implements simthlib::StreamDecoder. |
|
Returns the number of uncoded data input bits per step of the associated encoder, i.e. the number of data output bits per step of this decoder. Implements simthlib::StreamDecoder. |
|
Performs a maximum likelihood sequence estimation based on the log-likelihood ratios given by the demodulator (the received modulation symbols) (soft decision decoding). Implements simthlib::Decoder. Reimplemented in simthlib::PunctConvDecoder. |
|
Performs a maximum likelihood sequence estimation of the data sequence based on the log-likelihood values of the given (the received) modulation symbols (soft decision decoding) Implements simthlib::Decoder. Reimplemented in simthlib::PunctConvDecoder. |
|
Decodes a bit sequence (hard decision decoding). Implements simthlib::Decoder. Reimplemented in simthlib::PunctConvDecoder. |
|
Returns the length of a coded bit sequence which is generated by the coder from a raw data sequence of the given length.
Implements simthlib::Decoder. Reimplemented in simthlib::PunctConvDecoder. |
|
Returns the length of a data bit sequence which is encoded by the coder from a coded bit sequence of the given length
Implements simthlib::Decoder. Reimplemented in simthlib::PunctConvDecoder. |
|
Reimplemented from simthlib::Decoder. |