#include <modulationschemes.h>
Inheritance diagram for simthlib::QamConstellationDiagram:
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) |
|
Class constructor. |
|
|
|
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. |
|
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. |
|
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. |