Interface to alternate processing engine (e.g. GPU) More...

#include <Fold.h>

Inheritance diagram for dsp::Fold::Engine:
OwnStream Reference::Able Reference::HeapTracked dsp::CyclicFoldEngine

Public Member Functions

void set_parent (Fold *)
 
virtual void set_nbin (unsigned nbin)=0
 Set the number of phase bins and initialize any other data structures.
 
virtual void set_bin (uint64_t idat, double ibin, double bins_per_samp)=0
 Set the phase bin into which the idat'th sample will be integrated.
 
virtual uint64_t set_bins (double phi, double phase_per_sample, uint64_t _ndat, uint64_t idat_start)=0
 
virtual uint64_t get_bin_hits (int ibin)=0
 
virtual uint64_t get_ndat_folded () const =0
 Return the number of time samples folded.
 
virtual PhaseSeriesget_profiles ()=0
 Return the PhaseSeries into which data will be folded.
 
virtual void fold ()=0
 Perform the fold operation.
 
virtual void synch (PhaseSeries *)=0
 Synchronize the folded profile.
 
virtual void zero ()=0
 Zero out internal data.
 
virtual void set_ndat (uint64_t ndat, uint64_t idat_start)
 Enable engine to prepare any internal memory required for the plan.
 
- Public Member Functions inherited from OwnStream
 OwnStream (const OwnStream &)
 
const OwnStreamoperator= (const OwnStream &)
 
virtual void set_cout (std::ostream &) const
 
virtual void set_cerr (std::ostream &) const
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Public Attributes

bool use_set_bins
 

Protected Member Functions

void setup ()
 Set the above attributes.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Protected Attributes

float * output
 
unsigned output_span
 
const float * input
 
unsigned input_span
 
unsigned * hits
 
unsigned hits_nchan
 
bool zeroed_samples
 
unsigned ndat_fold
 
uint64_t idat_start
 
unsigned nchan
 
unsigned npol
 
unsigned ndim
 
Foldparent
 
bool synchronized
 

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 

Detailed Description

Interface to alternate processing engine (e.g. GPU)


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

Generated using doxygen 1.8.17