Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Node.h
Go to the documentation of this file.
1 /***************************************************************************
2  Node.h - description
3  -------------------
4  copyright : (C) 2004 by Marco Hugentobler
5  email : mhugent@geo.unizh.ch
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef NODE_H
18 #define NODE_H
19 
20 #include "Point3D.h"
21 #include <iostream>
22 
24 class ANALYSIS_EXPORT Node
25 {
26  protected:
31  public:
32  Node();
33  Node( const Node& n );
34  ~Node();
35  Node& operator=( const Node& n );
37  Node* getNext() const;
39  Point3D* getPoint() const;
41  void setNext( Node* n );
43  void setPoint( Point3D* p );
44 };
45 
46 inline Node::Node() : mPoint( 0 ), mNext( 0 )
47 {
48 
49 }
50 
51 inline Node::~Node()
52 {
53 
54 }
55 
56 inline Node* Node::getNext() const
57 {
58  return mNext;
59 }
60 
61 inline Point3D* Node::getPoint() const
62 {
63  return mPoint;
64 }
65 
66 inline void Node::setNext( Node* n )
67 {
68  mNext = n;
69 }
70 
71 inline void Node::setPoint( Point3D* p )
72 {
73  mPoint = p;
74 }
75 
76 #endif