Responsible for retrieving ways for the purpose of filtering member nodes. More...
#include <WayLister.h>
Public Member Functions | |
WayLister (OsmDatabase &db, std::multimap< std::string, std::string > const &attributes, unsigned int fetch_size=100000) | |
Constructor. | |
std::map< osm::Way, std::multimap< osm::Node, osm::Way, osm::LtByID > , osm::LtByID > const & | get_current_connected_ways () const |
void | next () |
Fetch next chunk of data from database. | |
void | reset () |
Return to beginning. | |
bool | end () |
End retrieval and close underlying connection (no need to call this if you do not need to close cursor before this object gets destroyed. | |
virtual | ~WayLister () |
Responsible for retrieving ways for the purpose of filtering member nodes.
Definition at line 25 of file WayLister.h.
osmdb::WayLister::WayLister | ( | OsmDatabase & | db, |
std::multimap< std::string, std::string > const & | attributes, | ||
unsigned int | fetch_size = 100000 |
||
) |
Constructor.
db | underlying OsmDatabase |
attributes | ways containing these attributes will be fetchet |
fetch_size | amount of rows to fetch in one chunk |
Definition at line 16 of file WayLister.cpp.
osmdb::WayLister::~WayLister | ( | ) | [virtual] |
Definition at line 157 of file WayLister.cpp.
bool osmdb::WayLister::end | ( | ) |
End retrieval and close underlying connection (no need to call this if you do not need to close cursor before this object gets destroyed.
Definition at line 135 of file WayLister.cpp.
std::map< osm::Way, std::multimap< osm::Node, osm::Way, osm::LtByID >, osm::LtByID > const & osmdb::WayLister::get_current_connected_ways | ( | ) | const |
Definition at line 26 of file WayLister.cpp.
void osmdb::WayLister::next | ( | ) |
Fetch next chunk of data from database.
Definition at line 31 of file WayLister.cpp.
void osmdb::WayLister::reset | ( | ) |
Return to beginning.
Definition at line 129 of file WayLister.cpp.