Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
DFTBase< T > Class Template Reference

Base class for DFTs. More...

#include <DFT.h>

Inheritance diagram for DFTBase< T >:
Synced Node2< Synced > SDFT< T >

List of all members.

Public Member Functions

T * aux (uint32_t num)
 Get pointer to an auxiliary buffer.
Complex< T > * bins () const
 Get pointer to bin data.
Complex< T > & bin (uint32_t k)
 Get reference to bin value.
const Complex< T > & bin (uint32_t k) const
 Get read-only reference to bin value.
double binFreq () const
 Get width of frequency bins.
uint32_t numBins () const
 Get number of frequency bins.
uint32_t sizeDFT () const
 Get size of forward transform.
SyncsyncFreq ()
 Get frequency domain synchronizer.
void numAux (uint32_t num)
 Sets number of auxilliary buffers, each of size numBins()
virtual void onResync (double r)
 Called by my Sync reference after it changes its value.
double scaleSPU () const
 Returns ratio of my SPU to my Sync's SPU.
void scaleSPU (double v)
 Scales samples/unit by factor.
double spu () const
 Returns local samples/unit.
void spu (double v)
 Set local samples/unit.
double ups () const
 Returns local units/sample.
void ups (double v)
 Set local units/sample.
const Syncsync () const
 Returns reference to my Sync.
void sync (Sync &src)
 Set absolute Sync source.
void scaleUPS (double v)
 Scales units/sample by factor.
void nodeInsertL (Synced &node)
 Insert myself to left of node.
void nodeInsertR (Synced &node)
 Insert myself to right of node.
void nodeRemove ()
 Remove myself from linked list.

Public Attributes

SyncednodeL
 Pointer to left node.
SyncednodeR
 Pointer to right node.

Protected Member Functions

void initSynced ()
 To be called from the constructor(s) of derived classes.

Detailed Description

template<class T = gam::real>
class gam::DFTBase< T >

Base class for DFTs.


Member Function Documentation

void onResync ( double  ratioSPU) [virtual]

Called by my Sync reference after it changes its value.

Any instance state that depends on the sampling length should be updated here.

Reimplemented from Synced.

Reimplemented in DFT.


The documentation for this class was generated from the following file: