Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::DapskEncoder Class Reference

#include <encoder.h>

Inheritance diagram for simthlib::DapskEncoder:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

Class to implement a 'DAPSK'-Encoding.


Constructor & Destructor Documentation

simthlib::DapskEncoder::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 simthlib::DapskEncoder::~DapskEncoder  )  [virtual]
 


Member Function Documentation

int simthlib::DapskEncoder::bitsPerAmpl  )  const [inline, protected]
 

int simthlib::DapskEncoder::bitsPerPhase  )  const [inline, protected]
 

virtual int simthlib::DapskEncoder::codedBitsPerStep  )  const [inline, virtual]
 

void simthlib::DapskEncoder::computeSplittedSizes int  numInSize,
int *  amplSize,
int *  phaseSize
const [protected]
 

virtual int simthlib::DapskEncoder::dataBitsPerStep  )  const [inline, virtual]
 

virtual void simthlib::DapskEncoder::Encode const simth::BitSeq bsin,
simth::BitSeq bsout
const [virtual]
 

Encodes the given bit sequence.

Implements simthlib::Encoder.

virtual int simthlib::DapskEncoder::getCodeLength int  rawLength  )  const [virtual]
 

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.

Parameters:
rawLength length of the data sequence
Returns:
allocated length of the coded sequence

Implements simthlib::Encoder.

virtual int simthlib::DapskEncoder::getDataLength int  codedLength  )  const [virtual]
 

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.

Parameters:
codedLength length of the coded sequence
Returns:
allocated length of the encoded data sequence

Implements simthlib::Encoder.

virtual void simthlib::DapskEncoder::print std::ostream &  os  )  const [virtual]
 

Reimplemented from simthlib::Encoder.


Generated on Tue Aug 9 14:38:10 2005 for simtheticlib by  doxygen 1.4.1