UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cuda_bpflt_calc_block.hpp
1 /* cuda_bpflt_calc_block.hpp */
2 /* $Id$ */
3 #ifndef __cuda_bpflt_calc_block_hpp
4 #define __cuda_bpflt_calc_block_hpp
5 
6 #include <dcf/calc_block.hpp>
7 #include <vector>
8 
9 namespace dcf
10 {
14  {
15  public:
16 
18  typedef std::pair<float, float> BElem;
19 
21  typedef std::vector<BElem> Band;
22 
26  CUBPFCalcBlock(const dcf::Manager &manager, const Band &band);
27 
29  virtual ~CUBPFCalcBlock();
30 
34  void setSignal(std::vector<float> *pampls, float dt, size_t n = 1)
35  {m_pampls = pampls, m_dt = dt; m_n = n;}
36 
38  virtual void start();
39 
40  protected:
41 
43  virtual void run();
44 
47 
49  std::vector<float> *m_pampls;
50 
52  size_t m_n;
53 
55  float m_dt;
56 
57  private:
58 
60  size_t m_signal_size_for_plan;
61 
63  bool is_plan_constructed;
64  };
65 };
66 
67 #endif /* cuda_bpflt_calc_block.hpp */
Definition: manager.hpp:19
const dcf::Manager * manager() const
Definition: calc_block.hpp:43
void setSignal(std::vector< float > *pampls, float dt, size_t n=1)
Definition: cuda_bpflt_calc_block.hpp:34
size_t m_n
Definition: cuda_bpflt_calc_block.hpp:52
std::vector< float > * m_pampls
Definition: cuda_bpflt_calc_block.hpp:49
Definition: cuda_bpflt_calc_block.hpp:13
Definition: calc_block.hpp:17
float m_dt
Definition: cuda_bpflt_calc_block.hpp:55
virtual void start()
virtual void run()
virtual ~CUBPFCalcBlock()
std::vector< BElem > Band
Definition: cuda_bpflt_calc_block.hpp:21
CUBPFCalcBlock(const dcf::Manager &manager, const Band &band)
Band m_band
Definition: cuda_bpflt_calc_block.hpp:46
std::pair< float, float > BElem
Definition: cuda_bpflt_calc_block.hpp:18