Lightweight handle to a line graph stored in a FMTSpatialGraphs, forwarding output and solution operations to the underlying graph.
More...
#include <FMTVirtualLineGraph.h>
|
| | FMTVirtualLineGraph ()=default |
| | Default constructor for FMTVirtualLineGraph.
|
| |
| | FMTVirtualLineGraph (FMTSpatialGraphs &p_Graphs, FMTSpatialGraphs::const_iterator p_Iterator, size_t p_Family) |
| | Construct a FMTVirtualLineGraph pointing to a graph of a family in a FMTSpatialGraphs.
|
| |
| | FMTVirtualLineGraph (const FMTVirtualLineGraph &p_LineGraph, FMTSpatialGraphs &p_Graphs) |
| | Copy a FMTVirtualLineGraph, rebinding it to another FMTSpatialGraphs.
|
| |
| | FMTVirtualLineGraph (const FMTVirtualLineGraph &p_LineGraph) |
| | Copy constructor for FMTVirtualLineGraph.
|
| |
| FMTVirtualLineGraph & | operator= (const FMTVirtualLineGraph &p_LineGraph) |
| | Copy assignment operator for FMTVirtualLineGraph.
|
| |
| | ~FMTVirtualLineGraph () |
| | Destructor for FMTVirtualLineGraph.
|
| |
| bool | operator== (const FMTVirtualLineGraph &p_Element) const |
| | Comparison operator for FMTVirtualLineGraph.
|
| |
| bool | operator< (const FMTVirtualLineGraph &p_Element) const |
| | Less than operator for FMTVirtualLineGraph.
|
| |
| size_t | hash () const |
| | Hash the virtual line graph.
|
| |
| const Graph::FMTLineGraph & | getLineGraph () const |
| | Return the underlying line graph.
|
| |
| void | setLineGraph (const Graph::FMTLineGraph &p_LineGraph, FMTSolutionTracker &p_solution) |
| | Set the underlying line graph and update the solution tracker.
|
| |
| double | getOutput (const Models::FMTModel &p_model, const FMTSolutionTracker &p_solution, const Core::FMTOutput &p_output, int p_period) const |
| | Return the output value of the graph for a period.
|
| |
| size_t | getGraphFamily () const |
| | Return the constraint family of the graph.
|
| |
| void | setBaseGraph (FMTSolutionTracker &p_solution) |
| | Set the graph to its base version and update the solution tracker.
|
| |
| void | setLastPeriod (FMTSolutionTracker &p_solution) |
| | Set the graph to its last period version and update the solution tracker.
|
| |
| void | setNaturalGrowth (FMTSolutionTracker &p_solution) |
| | Set the graph to its natural growth version and update the solution tracker.
|
| |
| FMTVirtualLineGraph | postSolve (const Core::FMTMaskFilter &p_Filter, const std::vector< int > &p_actionMapping, FMTSpatialGraphs &p_Graphs, FMTSolutionTracker &p_solution) const |
| | Return a postsolved copy of the virtual line graph.
|
| |
Lightweight handle to a line graph stored in a FMTSpatialGraphs, forwarding output and solution operations to the underlying graph.
◆ FMTVirtualLineGraph() [1/4]
| Spatial::FMTVirtualLineGraph::FMTVirtualLineGraph |
( |
| ) |
|
|
default |
◆ FMTVirtualLineGraph() [2/4]
Construct a FMTVirtualLineGraph pointing to a graph of a family in a FMTSpatialGraphs.
- Parameters
-
| [in] | p_Graphs | the spatial graphs. |
| [in] | p_Iterator | the graph iterator. |
| [in] | p_Family | the constraint family. |
◆ FMTVirtualLineGraph() [3/4]
◆ FMTVirtualLineGraph() [4/4]
◆ ~FMTVirtualLineGraph()
| Spatial::FMTVirtualLineGraph::~FMTVirtualLineGraph |
( |
| ) |
|
◆ getGraphFamily()
| size_t Spatial::FMTVirtualLineGraph::getGraphFamily |
( |
| ) |
const |
Return the constraint family of the graph.
- Returns
- the graph family.
◆ getLineGraph()
Return the underlying line graph.
- Returns
- the line graph.
◆ getOutput()
Return the output value of the graph for a period.
- Parameters
-
| [in] | p_model | the model. |
| [in] | p_solution | the solution tracker. |
| [in] | p_output | the output. |
| [in] | p_period | the period. |
- Returns
- the output value.
◆ hash()
| size_t Spatial::FMTVirtualLineGraph::hash |
( |
| ) |
const |
Hash the virtual line graph.
- Returns
- the hash of the virtual line graph.
◆ operator<()
Less than operator for FMTVirtualLineGraph.
- Parameters
-
- Returns
- true if this virtual line graph is less than the other else false.
◆ operator=()
◆ operator==()
Comparison operator for FMTVirtualLineGraph.
- Parameters
-
- Returns
- true if both virtual line graphs are equal else false.
◆ postSolve()
Return a postsolved copy of the virtual line graph.
- Parameters
-
| [in] | p_Filter | the mask filter. |
| [in] | p_actionMapping | the action mapping. |
| [in,out] | p_Graphs | the spatial graphs. |
| [in,out] | p_solution | the solution tracker. |
- Returns
- the postsolved virtual line graph.
◆ setBaseGraph()
Set the graph to its base version and update the solution tracker.
- Parameters
-
| [in,out] | p_solution | the solution tracker. |
◆ setLastPeriod()
Set the graph to its last period version and update the solution tracker.
- Parameters
-
| [in,out] | p_solution | the solution tracker. |
◆ setLineGraph()
Set the underlying line graph and update the solution tracker.
- Parameters
-
| [in] | p_LineGraph | the line graph. |
| [in,out] | p_solution | the solution tracker. |
◆ setNaturalGrowth()
Set the graph to its natural growth version and update the solution tracker.
- Parameters
-
| [in,out] | p_solution | the solution tracker. |
The documentation for this class was generated from the following file: