Parallel Analog Ensemble
Public Member Functions | Friends | List of all members
Stations Class Reference

Stations class stores Station objects. It is a bidirectional map implemented from Boost so that it provides fast translation from and to its underlying Station object. More...

#include <Stations.h>

Inheritance diagram for Stations:

Public Member Functions

 Stations ()=default
 
virtual ~Stations ()=default
 
void push_back (const Station &)
 
void shiftLongitudes ()
 
std::size_t getIndex (const Station &) const
 
void getIndices (const Stations &, std::vector< std::size_t > &) const
 
const StationgetStation (size_t index) const
 
void getCoordinates (std::vector< double > &, std::vector< double > &) const
 
void getNames (std::vector< std::string > &) const
 
void print (std::ostream &) const
 

Friends

std::ostream & operator<< (std::ostream &, Stations const &)
 

Detailed Description

Stations class stores Station objects. It is a bidirectional map implemented from Boost so that it provides fast translation from and to its underlying Station object.

Stations class support the following features:

  1. Station is unique;
  2. Station objects are kept in sequence of insertion and has random access;
  3. Index of a Station object can be quickly retrieved using Station.

Constructor & Destructor Documentation

◆ Stations()

Stations::Stations ( )
default

◆ ~Stations()

virtual Stations::~Stations ( )
virtualdefault

Member Function Documentation

◆ getCoordinates()

void Stations::getCoordinates ( std::vector< double > &  ,
std::vector< double > &   
) const

◆ getIndex()

size_t Stations::getIndex ( const Station station) const

◆ getIndices()

void Stations::getIndices ( const Stations ,
std::vector< std::size_t > &   
) const

◆ getNames()

void Stations::getNames ( std::vector< std::string > &  ) const

◆ getStation()

const Station & Stations::getStation ( size_t  index) const

◆ print()

void Stations::print ( std::ostream &  ) const

◆ push_back()

void Stations::push_back ( const Station station)

◆ shiftLongitudes()

void Stations::shiftLongitudes ( )

Shift station longitudes from (0 ~ -360) to (-180 ~ 180)

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  ,
Stations const &   
)
friend

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