VieSched++
VieVS VLBI Scheduling Software
VieVS::SourceList Class Reference

representation of a SourceList More...

#include <SourceList.h>

Inheritance diagram for VieVS::SourceList:
Collaboration diagram for VieVS::SourceList:

Public Member Functions

 SourceList ()
 
 SourceList (const SourceList &rhs)
 
 SourceList (SourceList &&rhs) noexcept
 
SourceListoperator= (SourceList rhs)
 
void addQuasar (const std::shared_ptr< Quasar > &q)
 
void addSatellite (std::shared_ptr< Satellite > s)
 
const std::vector< std::shared_ptr< AbstractSource > > & refSources ()
 
std::vector< std::shared_ptr< const AbstractSource > > getSources () const
 
const std::vector< std::shared_ptr< Quasar > > & refQuasars ()
 
std::vector< std::shared_ptr< const Quasar > > getQuasars () const
 
const std::vector< std::shared_ptr< Satellite > > & refSatellites ()
 
std::vector< std::shared_ptr< const Satellite > > getSatellites () const
 
unsigned long getNSrc () const
 
unsigned long getNQuasars () const
 
unsigned long getNSatellites () const
 
bool empty () const
 
std::shared_ptr< const AbstractSourcegetSource (unsigned long id) const
 
std::shared_ptr< AbstractSourcerefSource (unsigned long id)
 
std::shared_ptr< const QuasargetQuasar (unsigned long idx) const
 
std::shared_ptr< QuasarrefQuasar (unsigned long idx)
 
std::shared_ptr< const SatellitegetSatellite (unsigned long idx) const
 
std::shared_ptr< SatelliterefSatellite (unsigned long idx)
 
bool isQuasar (unsigned long id) const
 
bool isSatellite (unsigned long id) const
 
- Public Member Functions inherited from VieVS::VieVS_Object
 VieVS_Object (unsigned long id)
 constructor More...
 
const unsigned long getId () const
 get object id More...
 
bool hasValidId () const
 check if id is valid More...
 
bool hasId (unsigned long id) const
 check if object has specific id More...
 
void setId (unsigned long id)
 set object id More...
 
std::string printId () const
 object id string More...
 

Private Attributes

std::vector< std::shared_ptr< AbstractSource > > sources_
 
std::vector< std::shared_ptr< Quasar > > quasars_
 
std::vector< std::shared_ptr< Satellite > > satellites_
 
unsigned long nsrc_ = 0
 
unsigned long nquasars_ = 0
 
unsigned long nsatellites_ = 0
 

Static Private Attributes

static unsigned long nextId = 0
 next id for this object type More...
 

Detailed Description

representation of a SourceList

Author
Matthias Schartner
Date
29.07.2020

Constructor & Destructor Documentation

VieVS::SourceList::SourceList ( )
inline

Here is the call graph for this function:

SourceList::SourceList ( const SourceList rhs)

Here is the call graph for this function:

SourceList::SourceList ( SourceList &&  rhs)
noexcept

Member Function Documentation

void VieVS::SourceList::addQuasar ( const std::shared_ptr< Quasar > &  q)
inline

Here is the caller graph for this function:

void VieVS::SourceList::addSatellite ( std::shared_ptr< Satellite s)
inline

Here is the caller graph for this function:

bool VieVS::SourceList::empty ( ) const
inline

Here is the caller graph for this function:

unsigned long VieVS::SourceList::getNQuasars ( ) const
inline

Here is the caller graph for this function:

unsigned long VieVS::SourceList::getNSatellites ( ) const
inline

Here is the caller graph for this function:

unsigned long VieVS::SourceList::getNSrc ( ) const
inline

Here is the caller graph for this function:

std::shared_ptr<const Quasar> VieVS::SourceList::getQuasar ( unsigned long  idx) const
inline

Here is the caller graph for this function:

std::vector<std::shared_ptr<const Quasar> > VieVS::SourceList::getQuasars ( ) const
inline

Here is the caller graph for this function:

std::shared_ptr<const Satellite> VieVS::SourceList::getSatellite ( unsigned long  idx) const
inline

Here is the caller graph for this function:

std::vector<std::shared_ptr<const Satellite> > VieVS::SourceList::getSatellites ( ) const
inline

Here is the caller graph for this function:

std::shared_ptr<const AbstractSource> VieVS::SourceList::getSource ( unsigned long  id) const
inline

Here is the caller graph for this function:

std::vector<std::shared_ptr<const AbstractSource> > VieVS::SourceList::getSources ( ) const
inline

Here is the caller graph for this function:

bool VieVS::SourceList::isQuasar ( unsigned long  id) const
inline
bool VieVS::SourceList::isSatellite ( unsigned long  id) const
inline

Here is the caller graph for this function:

SourceList & SourceList::operator= ( SourceList  rhs)

Here is the caller graph for this function:

std::shared_ptr<Quasar> VieVS::SourceList::refQuasar ( unsigned long  idx)
inline

Here is the caller graph for this function:

const std::vector<std::shared_ptr<Quasar> >& VieVS::SourceList::refQuasars ( )
inline

Here is the caller graph for this function:

std::shared_ptr<Satellite> VieVS::SourceList::refSatellite ( unsigned long  idx)
inline

Here is the caller graph for this function:

const std::vector<std::shared_ptr<Satellite> >& VieVS::SourceList::refSatellites ( )
inline

Here is the caller graph for this function:

std::shared_ptr<AbstractSource> VieVS::SourceList::refSource ( unsigned long  id)
inline

Here is the caller graph for this function:

const std::vector<std::shared_ptr<AbstractSource> >& VieVS::SourceList::refSources ( )
inline

Here is the caller graph for this function:

Member Data Documentation

unsigned long VieVS::SourceList::nextId = 0
staticprivate

next id for this object type

unsigned long VieVS::SourceList::nquasars_ = 0
private
unsigned long VieVS::SourceList::nsatellites_ = 0
private
unsigned long VieVS::SourceList::nsrc_ = 0
private
std::vector<std::shared_ptr<Quasar> > VieVS::SourceList::quasars_
private
std::vector<std::shared_ptr<Satellite> > VieVS::SourceList::satellites_
private
std::vector<std::shared_ptr<AbstractSource> > VieVS::SourceList::sources_
private

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