A class for representing edges.
More...
#include <edge.h>
|
| edge (int f, int t, int c, bool v=false) |
| Constructor that initializes the private member variables. More...
|
|
bool | operator== (const edge &e) const |
| Compare this edge to another one. More...
|
|
A class for representing edges.
Definition at line 9 of file edge.h.
edge::edge |
( |
int |
f, |
|
|
int |
t, |
|
|
int |
c, |
|
|
bool |
v = false |
|
) |
| |
Constructor that initializes the private member variables.
- Parameters
-
f | The starting vertex. |
t | The ending vertex. |
c | The cost of the edge. |
v | Whether the sweeping pattern is vertical or horizontal. Default horizontal. |
Definition at line 3 of file edge.cpp.
bool edge::operator== |
( |
const edge & |
e | ) |
const |
Compare this edge to another one.
- Parameters
-
e | The other edge to compare. |
- Returns
- True, of both edges are identical, false otherwise.
Definition at line 7 of file edge.cpp.
The cost of the edge, i.e., length.
Definition at line 41 of file edge.h.
The starting vertex of the edge.
Definition at line 31 of file edge.h.
The ending vertex of the edge.
Definition at line 36 of file edge.h.
Whether the sweeping pattern is vertical or horizontal.
Definition at line 46 of file edge.h.
The documentation for this class was generated from the following files: