Osmium
0.1
|
#include <node.hpp>
Classes | |
struct | JavascriptTemplate |
Public Member Functions | |
Node () | |
const Position | position () const |
Node & | position (Position position) |
osm_object_type_t | get_type () const |
void | set_x (double x) |
void | set_y (double y) |
double | get_lon () const |
double | get_lat () const |
v8::Handle< v8::Value > | js_get_geom () const |
Private Attributes | |
Position | m_position |
Static Private Attributes | |
static const int | max_length_coordinate = 12 + 1 |
maximum length of coordinate string (3 digits + dot + 8 digits + null byte) | |
Friends | |
bool | operator< (const Node &lhs, const Node &rhs) |
bool | operator< (const shared_ptr< Node const > &lhs, const shared_ptr< Node const > &rhs) |
Osmium::OSM::Node::Node | ( | ) | [inline] |
double Osmium::OSM::Node::get_lat | ( | ) | const [inline] |
double Osmium::OSM::Node::get_lon | ( | ) | const [inline] |
osm_object_type_t Osmium::OSM::Node::get_type | ( | ) | const [inline, virtual] |
Implements Osmium::OSM::Object.
v8::Handle< v8::Value > Osmium::OSM::Node::js_get_geom | ( | ) | const |
const Position Osmium::OSM::Node::position | ( | ) | const [inline] |
Node& Osmium::OSM::Node::position | ( | Position | position | ) | [inline] |
void Osmium::OSM::Node::set_x | ( | double | x | ) | [inline] |
void Osmium::OSM::Node::set_y | ( | double | y | ) | [inline] |
Nodes 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 id.
bool operator< | ( | const shared_ptr< Node const > & | lhs, |
const shared_ptr< Node const > & | rhs | ||
) | [friend] |
Ordering for shared_ptrs of Nodes.
Position Osmium::OSM::Node::m_position [private] |
const int Osmium::OSM::Node::max_length_coordinate = 12 + 1 [static, private] |
maximum length of coordinate string (3 digits + dot + 8 digits + null byte)