Osmium  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Private Attributes | Static Private Attributes | Friends
Osmium::OSM::Node Class Reference

#include <node.hpp>

Inheritance diagram for Osmium::OSM::Node:
Inheritance graph
[legend]
Collaboration diagram for Osmium::OSM::Node:
Collaboration graph
[legend]

List of all members.

Classes

struct  JavascriptTemplate

Public Member Functions

 Node ()
const Position position () const
Nodeposition (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)

Constructor & Destructor Documentation


Member Function Documentation

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]

Friends And Related Function Documentation

bool operator< ( const Node lhs,
const Node rhs 
) [friend]

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.


Member Data Documentation

const int Osmium::OSM::Node::max_length_coordinate = 12 + 1 [static, private]

maximum length of coordinate string (3 digits + dot + 8 digits + null byte)


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