Ask a Question | Search DSPSR: |
Home
|
Public Types |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
dsp::Input Class Referenceabstract Pure virtual base class of all objects that can load BitSeries data. More...
Inheritance diagram for dsp::Input:
Detailed DescriptionPure virtual base class of all objects that can load BitSeries data. This class defines the common interface as well as some basic functionality relating to sources of BitSeries data. Member Function Documentation◆ copy()
Copies the behaviour and information attributes (not data) copies the following behavioural and informational attributes:
◆ get_output()
Retrieve a pointer to the output. throws an exception if the output is not set. To test if the output attribute is set, use Input::has_output. ◆ load()
Load BitSeries data. Only this load method is guaranteed to be thread safe Set the Observation attributes of data and load the next block of data. Because set_output and operate must be called separately, the only thread-safe interface to the Input class. ◆ load_data()
Load the next block of time samples into BitSeries. Implementations of this method must read get_load_size time samples, beginning with get_load_sample Implemented in dsp::MPIRoot, dsp::Seekable, and dsp::MPITrans. ◆ operation()
Load data into the BitSeries specified with set_output. Load data into the BitSeries specified by set_output. Implements dsp::Operation. ◆ seek()
Seek to the specified time sample. ensures that the load_sample attribute accomodates any extra time samples required owing to time sample resolution. also ensures that the load_size attribute is properly set.
Reimplemented in dsp::DADABuffer. Referenced by dsp::MPIRoot::load_data(), and dsp::DADABuffer::seek(). ◆ set_block_size()
Set the number of time samples to load on each load_block. ensures that the load_size attribute is properly set. Reimplemented in dsp::DADABuffer, and dsp::MPIRoot. Referenced by dsp::MPIRoot::load_data(), dsp::TestInput::runtest(), dsp::MPIRoot::set_block_size(), and dsp::DADABuffer::set_block_size(). ◆ set_total_samples()
Set the total number of time samples available. Generally useful for debugging References get_info(), and dsp::Observation::set_ndat(). Member Data Documentation◆ resolution
Time sample resolution of the data source. Derived classes must define the smallest number of time samples that can be loaded at one time. For instance, when reading two-bit sampled data, four time samples may be packed into one byte. In this case, resolution == 4. Referenced by get_resolution(), Input(), dsp::Mark5bFile::open_file(), dsp::Mark5File::open_file(), and set_resolution(). The documentation for this class was generated from the following files:
Generated using doxygen 1.8.17
|