pandore::GNode< Point > Class Template Reference

#include <graph.h>

List of all members.


Detailed Description

template<class Point>
class pandore::GNode< Point >

A node of a graph.

The class GNode defines a node. A node indexes an object in a separate array of objects at specified coordinates in the related image. It is characterized by a value and a list of connected nodes.


Public Member Functions

 GNode (Long i)
 GNode (Long i, const Point p)
 ~GNode ()
GEdgeNeighbours () const
GEdgeSearch (Long n) const
GEdgeSearch (Long n, Long i) const
GEdgeAdd (Long n, Double w)
GEdgeAdd (Long n, Long i, Double w)
GEdgeDel (Long n)
GEdgeDel (Long n, Long i)
Long Item () const
Long Item (Long i)

Public Attributes

Double value
Point seed


Constructor & Destructor Documentation

template<class Point>
pandore::GNode< Point >::GNode Long  i  )  [inline]
 

Creates a new node with the specified index, and the specified coordinates.

Parameters:
i the index of the referenced object.

template<class Point>
pandore::GNode< Point >::GNode Long  i,
const Point  p
[inline]
 

Creates a new node with the specified index, and the specified coordinates.

Parameters:
i the index of the referenced object.
p the specified coordinates.

template<class Point>
pandore::GNode< Point >::~GNode  ) 
 

Deletes the node.


Member Function Documentation

template<class Point>
GEdge* pandore::GNode< Point >::Add Long  n,
Long  i,
Double  w
 

Adds the specified node with the specified weight and the specified identifier. in front of the list of connected nodes

Parameters:
n the specified node.
w the weight of the edge.
i the identifier of the edge
Returns:
the new of list of connected nodes.

template<class Point>
GEdge* pandore::GNode< Point >::Add Long  n,
Double  w
 

Adds the specified node with the specified weight. in front of the list of connected nodes

Parameters:
n the specified node.
w the weight of the edge.
Returns:
the new of list of connected nodes.

template<class Point>
GEdge* pandore::GNode< Point >::Del Long  n,
Long  i
 

Deletes specific edge linking to the specified node from the list of connected nodes.

Parameters:
i the identifier of the edge
n the specified node.
Returns:
the new list of edges.

template<class Point>
GEdge* pandore::GNode< Point >::Del Long  n  ) 
 

Deletes the specified node from the list of connected nodes.

Parameters:
n the specified node.
Returns:
the new list of edges.

template<class Point>
Long pandore::GNode< Point >::Item Long  i  )  [inline]
 

Sets the new index of the referenced object.

Parameters:
i the new index.
Returns:
the new index of the object.

template<class Point>
Long pandore::GNode< Point >::Item  )  const [inline]
 

Returns the index of the referenced object.

Returns:
the index.

template<class Point>
GEdge* pandore::GNode< Point >::Neighbours  )  const [inline]
 

Returns the list of all the connected nodes.

Returns:
the list of connected nodes.

template<class Point>
GEdge* pandore::GNode< Point >::Search Long  n,
Long  i
const
 

Returns the edge from the specified node.

Parameters:
n the node to be searched.
i the identifier of the edge
Returns:
the edge with the specified node or NULL.

template<class Point>
GEdge* pandore::GNode< Point >::Search Long  n  )  const
 

Returns the edge from the specified node.

Parameters:
n the node to be searched.
Returns:
the edge with the specified node or NULL.


Member Data Documentation

template<class Point>
Point pandore::GNode< Point >::seed
 

The coordinates of the node seeds.

template<class Point>
Double pandore::GNode< Point >::value
 

The valuation of the node.


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

The Pantheon project
Image Team GREYC Laboratory
UMR CNRS 6072 - ENSICAEN - University of Caen, France
This page was last modified on 19 June 2015