Pulsar::SourceInfo Class Reference

Communicates Calibrator Stokes parameters. More...

#include <SourceInfo.h>

Inheritance diagram for Pulsar::SourceInfo:
Pulsar::Calibrator::Info Reference::Able Reference::HeapTracked

Public Member Functions

 SourceInfo (const std::vector< Reference::To< Calibration::SourceEstimate > > &)
 Constructor.
std::string get_title () const
 Return the title.
unsigned get_nchan () const
 Return the number of frequency channels.
unsigned get_nclass () const
 Return the number of parameter classes.
std::string get_label (unsigned iclass) const
 Return the name of the specified class.
unsigned get_nparam (unsigned iclass) const
 Return the number of parameters in the specified class.
Estimate< float > get_param (unsigned ichan, unsigned iclass, unsigned iparam) const
 Return the estimate of the specified parameter.
void set_together (bool)
 Plot all Stokes parameters in one panel.
void set_label (const std::string &)
 Set the label printed on the y-axis.
void set_title (const std::string &)
 Set the title.
Public Member Functions inherited from Pulsar::Calibrator::Info
virtual ~Info ()
 Destructor.
virtual std::string get_param_name (unsigned iparam) const
 Return the PGPLOT-encoded name of the specified parameter.
virtual int get_colour_index (unsigned iclass, unsigned iparam) const
 Return the colour index.
virtual int get_graph_marker (unsigned iclass, unsigned iparam) const
 Return the graph marker.
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 Attributes

const std::vector< Reference::To< Calibration::SourceEstimate > > & source
 The SourceEstimate to be plotted.
bool together
 Plot all Stokes parameters in one panel.
std::string label
 The label printed on the y-axis.
std::string title
 The title.

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 ()
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Detailed Description

Communicates Calibrator Stokes parameters.

Member Function Documentation

◆ get_label()

std::string Pulsar::SourceInfo::get_label ( unsigned iclass) const
virtual

Return the name of the specified class.

Implements Pulsar::Calibrator::Info.

References label, and together.

◆ get_nchan()

unsigned Pulsar::SourceInfo::get_nchan ( ) const
virtual

Return the number of frequency channels.

Implements Pulsar::Calibrator::Info.

References source.

◆ get_nclass()

unsigned Pulsar::SourceInfo::get_nclass ( ) const
virtual

Return the number of parameter classes.

Implements Pulsar::Calibrator::Info.

References together.

◆ get_nparam()

unsigned Pulsar::SourceInfo::get_nparam ( unsigned iclass) const
virtual

Return the number of parameters in the specified class.

Implements Pulsar::Calibrator::Info.

References together.

◆ get_param()

Estimate< float > Pulsar::SourceInfo::get_param ( unsigned ichan,
unsigned iclass,
unsigned iparam ) const
virtual

Return the estimate of the specified parameter.

Implements Pulsar::Calibrator::Info.

References source, and together.

◆ get_title()

std::string Pulsar::SourceInfo::get_title ( ) const
virtual

Return the title.

Implements Pulsar::Calibrator::Info.

References title.


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

Generated using doxygen 1.14.0