Go to the documentation of this file.
129 const label startNodeI,
130 const label endNodeI,
132 const label prevNodeI
139 const label pathValue
148 const label startNodeI,
149 const label prevNodeI,
150 const label pathValue
156 const label startNodeI,
157 const label prevNodeI,
158 const label pathValue,
label count(const label weight) const
Return number of weights. Utility function.
labelList getRoute(const label pathValue) const
Extract labels of route with given value.
void setWeights(const label weight, const label nodeI)
Set distance from nodeI.
bool route(const labelList &path, const label pathValue)
Find path from first element in path to all other elements.
bool shortestPath(const labelList &path, const label pathValue)
Routes single path.
const pointField coords_
Coordinates of nodes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
label findEndNode(const label startNodeI, const label prevNodeI, const label pathValue) const
Find node which has no neighbours with pathValue.
Lee's PCB routing algorithm. Construct with list of connections between nodes (i.e....
void storeRoute(const label startNodeI, const label prevNodeI, const label pathValue, DynamicList< label > &route) const
Append all pathValue weights to route.
void operator=(const router &)
Disallow default bitwise assignment.
label getValue(const label) const
Linear search for element with weight.
const labelListList connections_
Connections.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
router(const router &)
Disallow default bitwise copy construct.
labelList weights_
Routing table.
void fixWeights(const label startNodeI, const label endNodeI, const label nodeI, const label prevNodeI)
Finds path from nodeI to startNodeI by travelling in direction.
const labelList & weights() const