|
libdballe
7.7
|
Storage and index for station information. More...
#include <station.h>
Public Member Functions | |
| void | clear () |
| size_t | obtain_fixed (const Coords &coords, const std::string &report, bool create=true) |
| Get a fixed Station record. | |
| size_t | obtain_mobile (const Coords &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. | |
| size_t | obtain (const dballe::Station &st, bool create=true) |
| Get a fixed or mobile Station record depending on the data in rec. | |
| void | query (const core::Query &q, Results< Station > &res) const |
| Query stations returning the IDs. | |
| void | dump (FILE *out) const |
Public Member Functions inherited from dballe::memdb::ValueStorage< Station > | |
| 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 |
Protected Attributes inherited from dballe::memdb::ValueStorage< Station > | |
| std::vector< Station * > | values |
| std::vector< size_t > | empty_slots |
Additional Inherited Members | |
Public Types inherited from dballe::memdb::ValueStorage< Station > | |
| typedef Station | value_type |
Protected Member Functions inherited from dballe::memdb::ValueStorage< Station > | |
| 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.
1.8.9.1