Osmium
0.1
|
#include <relation.hpp>
Classes | |
struct | JavascriptTemplate |
Public Member Functions | |
Relation () | |
Relation (const Relation &r) | |
const RelationMemberList & | members () const |
osm_object_type_t | get_type () const |
void | add_member (const char type, osm_object_id_t ref, const char *role) |
const RelationMember * | get_member (osm_sequence_id_t index) const |
v8::Handle< v8::Value > | js_members () const |
Private Attributes | |
RelationMemberList | m_members |
Friends | |
bool | operator< (const Relation &lhs, const Relation &rhs) |
bool | operator< (const shared_ptr< Relation const > &lhs, const shared_ptr< Relation const > &rhs) |
Osmium::OSM::Relation::Relation | ( | ) | [inline] |
Osmium::OSM::Relation::Relation | ( | const Relation & | r | ) | [inline] |
void Osmium::OSM::Relation::add_member | ( | const char | type, |
osm_object_id_t | ref, | ||
const char * | role | ||
) | [inline] |
const RelationMember* Osmium::OSM::Relation::get_member | ( | osm_sequence_id_t | index | ) | const [inline] |
osm_object_type_t Osmium::OSM::Relation::get_type | ( | ) | const [inline, virtual] |
Implements Osmium::OSM::Object.
v8::Handle<v8::Value> Osmium::OSM::Relation::js_members | ( | ) | const [inline] |
const RelationMemberList& Osmium::OSM::Relation::members | ( | ) | const [inline] |
Relations can be ordered by id and version. Note that we use the absolute value of the id for a better ordering of objects with negative ids.
bool operator< | ( | const shared_ptr< Relation const > & | lhs, |
const shared_ptr< Relation const > & | rhs | ||
) | [friend] |
Ordering for shared_ptrs of Relations.