QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Node Class Reference

Node is a class used by Line3D. More...

#include <Node.h>

Collaboration diagram for Node:
Collaboration graph
[legend]

Public Member Functions

 Node ()
 Node (const Node &n)
 ~Node ()
Nodeoperator= (const Node &n)
NodegetNext () const
 Returns a pointer to the next element in the linked list.
Point3DgetPoint () const
 Returns a pointer to the Point3D object associated with the node.
void setNext (Node *n)
 Sets the pointer to the next node.
void setPoint (Point3D *p)
 Sets a new pointer to an associated Point3D object.

Protected Attributes

Point3DmPoint
 Pointer to the Point3D object associated with the node.
NodemNext
 Pointer to the next Node in the linked list.

Detailed Description

Node is a class used by Line3D.

It represents a node in the single directed linked list. Associated Point3D objects are deleted when the node is deleted.

Definition at line 23 of file Node.h.

Constructor & Destructor Documentation

Node::Node ( )
inline

Definition at line 45 of file Node.h.

Node::Node ( const Node n)
Node::~Node ( )
inline

Definition at line 50 of file Node.h.

Member Function Documentation

Node * Node::getNext ( ) const
inline

Returns a pointer to the next element in the linked list.

Definition at line 55 of file Node.h.

References mNext.

Point3D * Node::getPoint ( ) const
inline

Returns a pointer to the Point3D object associated with the node.

Definition at line 60 of file Node.h.

References mPoint.

Referenced by Line3D::getPoint().

Node& Node::operator= ( const Node n)
void Node::setNext ( Node n)
inline

Sets the pointer to the next node.

Definition at line 65 of file Node.h.

References mNext.

void Node::setPoint ( Point3D p)
inline

Sets a new pointer to an associated Point3D object.

Definition at line 70 of file Node.h.

References mPoint.

Member Data Documentation

Node* Node::mNext
protected

Pointer to the next Node in the linked list.

Definition at line 29 of file Node.h.

Referenced by getNext(), and setNext().

Point3D* Node::mPoint
protected

Pointer to the Point3D object associated with the node.

Definition at line 27 of file Node.h.

Referenced by getPoint(), and setPoint().


The documentation for this class was generated from the following file: