libdballe
6.8
|
Storage and index for station information. More...
#include <station.h>
Public Member Functions | |
void | clear () |
size_t | obtain_fixed (const Coord &coords, const std::string &report, bool create=true) |
Get a fixed Station record. | |
size_t | obtain_mobile (const Coord &coords, const std::string &ident, const std::string &report, bool create=true) |
Get a mobile Station record. | |
size_t | obtain (const Record &rec, bool create=true) |
Get a fixed or mobile Station record depending on the data in rec. | |
void | query (const Record &rec, Results< Station > &res) const |
Query stations returning the IDs. | |
void | dump (FILE *out) const |
![]() | |
void | clear () |
size_t | element_count () const |
Number of valid elements. More... | |
Station * | get_checked (size_t idx) |
const Station * | get_checked (size_t idx) const |
std::vector< Station * >::reference | operator[] (size_t idx) |
std::vector< Station * > ::const_reference | operator[] (size_t idx) const |
index_iterator | index_begin () const |
index_iterator | index_end () const |
void | copy_valptrs_to (OUTITER res) const |
Send all T pointers to the given output iterator. | |
void | copy_indices_to (OUTITER res) const |
Send all T pointers to the given output iterator. | |
Protected Attributes | |
Index< int > | by_lat |
Index< std::string > | by_ident |
![]() | |
std::vector< Station * > | values |
std::vector< size_t > | empty_slots |
Additional Inherited Members | |
![]() | |
typedef Station | value_type |
![]() | |
size_t | value_add (Station *value) |
Add the value to the storage and return its index take ownership of the pointer memory management. | |
void | value_remove (size_t pos) |
Remove a value given its position. | |
Storage and index for station information.