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

simthlib::QamConstellationDiagram Class Reference

#include <modulationschemes.h>

Inheritance diagram for simthlib::QamConstellationDiagram:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 QamConstellationDiagram (unsigned bitsPerSymbol)
virtual ~QamConstellationDiagram ()
virtual void initComplSymbols ()

Static Public Member Functions

static unsigned getRealBits (unsigned bitsPerSymbol)
static unsigned getImBits (unsigned bitsPerSymbol)

Detailed Description

QAM Constellation


Constructor & Destructor Documentation

simthlib::QamConstellationDiagram::QamConstellationDiagram unsigned  bitsPerSymbol  ) 
 

Class constructor.

virtual simthlib::QamConstellationDiagram::~QamConstellationDiagram  )  [virtual]
 


Member Function Documentation

static unsigned simthlib::QamConstellationDiagram::getImBits unsigned  bitsPerSymbol  )  [static]
 

This static function calculates and returns the number of the bits per imagine part in order to the given total number of bits per symbol.

static unsigned simthlib::QamConstellationDiagram::getRealBits unsigned  bitsPerSymbol  )  [static]
 

This static function calculates and returns the number of the bits per real part in order to the given total number of bits per symbol.

virtual void simthlib::QamConstellationDiagram::initComplSymbols  )  [virtual]
 

The derived functions of this pure virtual function determines the allocation between the symbol indexes and the complex values in the constellation diagram. The pairs of complex value and symbol index are set by using this function initComplSymbols() which has to be overridden by derived classes.

This derived function has to be called in the constructor of the derived class!

We use this somehow weird approach so that the getComplSymbol() function can be left non-virtual so that it can be inlined.

Implements simthlib::ConstellationDiagram.


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