Stores Calibrator parameters in an Archive. More...

#include <CalibratorExtension.h>

Inheritance diagram for Pulsar::CalibratorExtension:
Pulsar::HasChannels Pulsar::Archive::Extension Reference::Able Reference::HeapTracked Pulsar::FluxCalibratorExtension Pulsar::PolnCalibratorExtension

Classes

class  Interface
 Text interface to CalibratorExtension extension. More...
 

Public Member Functions

 CalibratorExtension (const char *name="CalibratorExtension")
 Default constructor.
 
 CalibratorExtension (const CalibratorExtension &)
 Copy constructor.
 
const CalibratorExtensionoperator= (const CalibratorExtension &)
 Operator =.
 
 ~CalibratorExtension ()
 Destructor.
 
CalibratorExtensionclone () const
 Clone method.
 
void build (const Calibrator *)
 Construct from a Calibrator instance.
 
virtual void set_type (const Calibrator::Type *type)
 Set the type of the calibrator.
 
virtual const Calibrator::Typeget_type () const
 Get the type of the calibrator.
 
virtual void set_epoch (const MJD &epoch)
 Set the reference epoch of the calibration experiment.
 
virtual MJD get_epoch () const
 Get the reference epoch of the calibration experiment.
 
virtual void set_nchan (unsigned nchan)
 Set the number of frequency channels.
 
virtual unsigned get_nchan () const
 Get the number of frequency channels.
 
virtual void remove_chan (unsigned first, unsigned last)
 Remove the inclusive range of channels.
 
virtual void set_weight (unsigned ichan, float weight)
 Set the weight of the specified channel.
 
virtual float get_weight (unsigned ichan) const
 Get the weight of the specified channel.
 
virtual void set_centre_frequency (unsigned ichan, double frequency)
 Set the centre frequency of the specified channel.
 
virtual double get_centre_frequency (unsigned ichan) const
 Get the centre frequency of the specified channel.
 
std::string get_short_name () const
 Return a short name.
 
TextInterface::Parserget_interface ()
 Return a text interfaces that can be used to access this instance.
 
void frequency_append (Archive *to, const Archive *from)
 Append Calibrator Extension data from another Archive.
 
- Public Member Functions inherited from Pulsar::HasChannels
 HasChannels (const char *name)
 
- Public Member Functions inherited from Pulsar::Archive::Extension
 Extension (const char *name)
 Construct with a name.
 
virtual ~Extension ()
 Destructor.
 
std::string get_extension_name () const
 Return the name of the Extension.
 
virtual bool has_data () const
 Returns true if the Extension contains useful data.
 
virtual void resize (unsigned nsubint, unsigned npol=0, unsigned nchan=0, unsigned nbin=0)
 Resize the Extension.
 
- 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
 

Protected Member Functions

void range_check (unsigned ichan, const char *method) const
 Ensure that ichan < get_nchan.
 
void frequency_append (const CalibratorExtension *, bool in_order)
 For use by children.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Protected Attributes

Reference::To< const Calibrator::Typetype
 Type of the calibrator.
 
MJD epoch
 The reference epoch of the calibration experiment.
 
std::vector< float > weight
 The weight of each channel.
 
std::vector< double > centre_frequency
 The centre frequency of each channel.
 
- Protected Attributes inherited from Pulsar::Archive::Extension
std::string extension_name
 Extension name - useful when debugging.
 

Additional Inherited Members

- Static Public Member Functions inherited from Pulsar::Archive::Extension
static Extensionfactory (const std::string &name)
 Derived type factory.
 
- 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

Stores Calibrator parameters in an Archive.

This Archive::Extension class implements the storage of Calibrator data, enabling a calibrator to be constructed from file.


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

Generated using doxygen 1.8.17