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>
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:
- Station is unique;
- Station objects are kept in sequence of insertion and has random access;
- Index of a Station object can be quickly retrieved using Station.
◆ Stations()
◆ ~Stations()
virtual Stations::~Stations |
( |
| ) |
|
|
virtualdefault |
◆ 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)
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
, |
|
|
Stations const & |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- /Users/weiming/github/AnalogsEnsemble/CAnEn/include/Stations.h
- /Users/weiming/github/AnalogsEnsemble/CAnEn/src/Stations.cpp