Public Member Functions
osmdb::WayLister Class Reference

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 ()

Detailed Description

Responsible for retrieving ways for the purpose of filtering member nodes.

Definition at line 25 of file WayLister.h.


Constructor & Destructor Documentation

osmdb::WayLister::WayLister ( OsmDatabase db,
std::multimap< std::string, std::string > const &  attributes,
unsigned int  fetch_size = 100000 
)

Constructor.

Parameters:
dbunderlying OsmDatabase
attributesways containing these attributes will be fetchet
fetch_sizeamount 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.


Member Function Documentation

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.

Returns:

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
Returns:
current buffer of fetched ways in the format used by wayred::WayNodeFilter

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.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines