UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dcf::CUBPFCalcBlock Class Reference

#include <cuda_bpflt_calc_block.hpp>

Inheritance diagram for dcf::CUBPFCalcBlock:
dcf::CalcBlock

Public Types

typedef std::pair< float, float > BElem
 
typedef std::vector< BElemBand
 

Public Member Functions

 CUBPFCalcBlock (const dcf::Manager &manager, const Band &band)
 
virtual ~CUBPFCalcBlock ()
 
void setSignal (std::vector< float > *pampls, float dt, size_t n=1)
 
virtual void start ()
 
- Public Member Functions inherited from dcf::CalcBlock
 CalcBlock (const dcf::Manager &manager)
 
 CalcBlock (const dcf::CalcBlock &cb)
 
virtual ~CalcBlock ()
 
virtual void stop ()
 
virtual void wait ()
 
virtual bool running () const
 
const dcf::Managermanager () const
 
dcf::error_t resultCode ()
 

Protected Member Functions

virtual void run ()
 

Protected Attributes

Band m_band
 
std::vector< float > * m_pampls
 
size_t m_n
 
float m_dt
 
- Protected Attributes inherited from dcf::CalcBlock
dcf::Managerm_manager
 
dcf::error_t m_result_code
 

Detailed Description

Band-pass filter which uses CUDA library. Any unit should be allocated before calculations.

Member Typedef Documentation

typedef std::vector<BElem> dcf::CUBPFCalcBlock::Band

Filter's band.

typedef std::pair<float, float> dcf::CUBPFCalcBlock::BElem

Fiter's (frequency, weight) band element.

Constructor & Destructor Documentation

dcf::CUBPFCalcBlock::CUBPFCalcBlock ( const dcf::Manager manager,
const Band band 
)
Constructs object with DCF manager provided. 

Band will be sorted by frequency ascending. And equal values will be removed.

virtual dcf::CUBPFCalcBlock::~CUBPFCalcBlock ( )
virtual

Destructor

Member Function Documentation

virtual void dcf::CUBPFCalcBlock::run ( )
protectedvirtual

Main calculation method.

Reimplemented from dcf::CalcBlock.

void dcf::CUBPFCalcBlock::setSignal ( std::vector< float > *  pampls,
float  dt,
size_t  n = 1 
)
inline
Sets a pointer to the amplitudes to be processed 

and sets discretization step. By default the only one signal is implyed, but n signals provided otherwise.

virtual void dcf::CUBPFCalcBlock::start ( )
virtual

Starting filter.

Reimplemented from dcf::CalcBlock.

Member Data Documentation

Band dcf::CUBPFCalcBlock::m_band
protected

Band of filter.

float dcf::CUBPFCalcBlock::m_dt
protected

Discretization step.

size_t dcf::CUBPFCalcBlock::m_n
protected

Number of signals in array.

std::vector<float>* dcf::CUBPFCalcBlock::m_pampls
protected

Amplitudes pointer.


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