Public Member Functions | Public Attributes | List of all members
Node Class Reference

The Node class defines a cell of grid (see Map class) More...

#include <Geom.h>

Public Member Functions

 Node (int i=0, int j=0, Node *p=nullptr, double g=0, double h=0)
 Node constructor with parameters. More...
 
bool operator!= (const Node &other) const
 operator != More...
 
bool operator== (const Node &another) const
 operator == More...
 

Public Attributes

double F
 F = g + h. Value for A* based algorithms. More...
 
double g
 g-value of node for A* based algorithms. More...
 
double H
 h-value of node for A* based algorithms. More...
 
int i
 The number of row. Part of (i,j) address of cell on grid. More...
 
int j
 The number of column. Part of (i,j) address of cell on grid. More...
 
Nodeparent
 The node from which the transition to this node was made. Value for A* based algorithms. More...
 

Detailed Description

The Node class defines a cell of grid (see Map class)

Definition at line 21 of file Geom.h.

Constructor & Destructor Documentation

Node::Node ( int  i = 0,
int  j = 0,
Node p = nullptr,
double  g = 0,
double  h = 0 
)
inline

Node constructor with parameters.

Parameters
iThe number of row. Part of (i,j) address of cell on grid.
jThe number of column. Part of (i,j) address of cell on grid.
pThe node from which the transition to this node was made. Optional. Value for A* based algorithms.
gg-value of node for A* based algorithms. Optional.
hh-value of node for A* based algorithms. Optional.

Definition at line 39 of file Geom.h.

Member Function Documentation

bool Node::operator!= ( const Node other) const
inline

operator !=

Parameters
otherObject to compare
Returns
Inequality of nodes addresses

Definition at line 424 of file Geom.h.

bool Node::operator== ( const Node another) const
inline

operator ==

Parameters
anotherObject to compare
Returns
Equality of nodes addresses

Definition at line 419 of file Geom.h.

Member Data Documentation

double Node::F

F = g + h. Value for A* based algorithms.

Definition at line 28 of file Geom.h.

double Node::g

g-value of node for A* based algorithms.

Definition at line 26 of file Geom.h.

double Node::H

h-value of node for A* based algorithms.

Definition at line 27 of file Geom.h.

int Node::i

The number of row. Part of (i,j) address of cell on grid.

Definition at line 24 of file Geom.h.

int Node::j

The number of column. Part of (i,j) address of cell on grid.

Definition at line 25 of file Geom.h.

Node* Node::parent

The node from which the transition to this node was made. Value for A* based algorithms.

Definition at line 29 of file Geom.h.


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


ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14