◆ Graph() [1/2]
| Graph::Graph |
( |
size_t | max_points, |
|
|
size_t | max_edges ) |
|
noexcept |
Constructor Creates a new Graph object
- Parameters
-
| max_points | : Maximum number of points in the Graph |
| max_edges | : Maximum number of edges in the GRAPH (not the point) |
◆ ~Graph()
Deconstruction NOTE on the '~Graph()': The ~ flags this block as a deconstructor. It makes it so this runs before the object is removed from memory preventing memory leaks Find the memory buffers pointed to by all_points and all_edges, and mark that memory as available for other programs to use.
◆ Graph() [2/2]
| Graph::Graph |
( |
Graph && | other | ) |
|
|
noexcept |
Move Constructor Instructions to move the current graph object from one memory location to another without copying
◆ add_edge()
| void Graph::add_edge |
( |
int | start_point_index, |
|
|
int | end_point_index ) |
|
noexcept |
add_edge Adds an edge between two points
- Parameters
-
| start_point_index | : the index of the starting point |
| end_point_index | : the index of the ending point |
◆ get_p_edges()
| Edge * Graph::get_p_edges |
( |
int | p_index | ) |
|
|
noexcept |
Getter Function: get_p_edges Gets the address of the first edge for Point P at index p_index
- Parameters
-
| p_index | : The index (int) of the point |
- Returns
- Edge* : the address of the first edge for p_index
The documentation for this class was generated from the following files: