HOG2
Public Member Functions | Public Attributes | List of all members
path Class Reference

A linked list of nodes which form a continuous path. More...

#include <Path.h>

Collaboration diagram for path:
Collaboration graph
[legend]

Public Member Functions

 path (node *_n, path *_next=0)
 
 ~path ()
 
pathClone ()
 
pathtail ()
 
pathreverse ()
 reverses path in place, and returns pointer to new head of path More...
 
unsigned length (void)
 returns the number of steps along the path More...
 
unsigned degree ()
 
void Print (bool beginning=true)
 

Public Attributes

noden
 
pathnext
 

Detailed Description

A linked list of nodes which form a continuous path.

Definition at line 20 of file Path.h.

Constructor & Destructor Documentation

◆ path()

path::path ( node _n,
path _next = 0 
)
inline

Definition at line 25 of file Path.h.

Referenced by Clone().

◆ ~path()

path::~path ( )
inline

Definition at line 26 of file Path.h.

References next.

Member Function Documentation

◆ Clone()

path* path::Clone ( )
inline

Definition at line 27 of file Path.h.

References Clone(), n, next, and path().

Referenced by Clone().

◆ degree()

unsigned path::degree ( )

Definition at line 33 of file Path.cpp.

References degree(), node::GetNumEdges(), n, and next.

Referenced by degree().

◆ length()

unsigned path::length ( void  )

returns the number of steps along the path

Definition at line 15 of file Path.cpp.

References length(), n, and next.

Referenced by IRAStar::ExtractAndRefinePath(), praStar::GetPath(), and length().

◆ Print()

void path::Print ( bool  beginning = true)

Definition at line 44 of file Path.cpp.

References node::GetNum(), n, next, and Print().

Referenced by hpaStar::findAbstractPath(), and Print().

◆ reverse()

path * path::reverse ( )

reverses path in place, and returns pointer to new head of path

Definition at line 62 of file Path.cpp.

References next, and reverse().

Referenced by hpaStar::findMapPath(), and reverse().

◆ tail()

path* path::tail ( )
inline

Member Data Documentation

◆ n

node* path::n

◆ next

path* path::next

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