{} typedef long Id; typedef double Coord ; ... class Node { private: Id id_; public: void set_id( Id val ) { id_ = val ; } Id id() { return id_ ; } private: Coord xx_; public: void set_xx( Coord val ) { xx_ = val ; } xx() { return xx_ ; } private: Coord yy_ ; public: void set_yy( Coord val ) { yy_ = val ; } yy() { return yy_ ; } };