Site coordinates. More...

#include <Site.h>

Inheritance diagram for Pulsar::Site:
Reference::Able Reference::HeapTracked Tempo2::Observatory Tempo::Observatory

Public Member Functions

virtual std::string get_name () const =0
 Get the observatory name.
virtual void get_xyz (double &x, double &y, double &z) const =0
 Get the geocentric XYZ coordinates in metres.
virtual void get_sph (double &lat, double &lon, double &rad) const =0
 Get the latitude and longitude in radians, and radius in metres.
Public Member Functions inherited from Reference::Able
 Able ()
 Default constructor.
 Able (const Able &)
 Copy constructor.
Ableoperator= (const Able &)
 Assignment operator.
virtual ~Able ()
 Destructor.
unsigned get_reference_count () const
 Returns the number of references there are to this.
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked ()
 Default constructor.
 HeapTracked (const HeapTracked &)
 Copy constructor.
HeapTrackedoperator= (const HeapTracked &)
 Assignment operator.
virtual ~HeapTracked ()
 Destructor.
bool __is_on_heap () const
 Return true if this instance is found in heap addresses.

Static Public Member Functions

static const Sitelocation (const std::string &antenna)
 Get the location of the named antenna.
Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 Returns the current number instances in existence.
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 Records the addresses of new instances allocated on the heap.
static void operator delete (void *location, void *ptr)
 Placement delete overload to match the placement new overload.
static void operator delete (void *location)
 Regular delete overload.
static size_t get_heap_queue_size ()
 Return the number of heap addresses awaiting processing.

Additional Inherited Members

Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 Add the address of a reference to this object.
void __dereference (bool auto_delete=true) const
 Remove the address of a reference to this object.

Detailed Description

Site coordinates.

Member Function Documentation

◆ get_name()

virtual std::string Pulsar::Site::get_name ( ) const
pure virtual

Get the observatory name.

Implemented in Tempo2::Observatory, and Tempo::Observatory.

◆ get_sph()

virtual void Pulsar::Site::get_sph ( double & lat,
double & lon,
double & rad ) const
pure virtual

Get the latitude and longitude in radians, and radius in metres.

longitude is in degrees East of Greenwich

Implemented in Tempo2::Observatory.

◆ get_xyz()

virtual void Pulsar::Site::get_xyz ( double & x,
double & y,
double & z ) const
pure virtual

Get the geocentric XYZ coordinates in metres.

Implemented in Tempo2::Observatory.


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

Generated using doxygen 1.14.0