Lines Matching refs:Costs
75 NodeEntry(VectorPtr Costs) : Costs(Costs) {} in NodeEntry() argument
97 VectorPtr Costs; variable
105 EdgeEntry(NodeId N1Id, NodeId N2Id, MatrixPtr Costs) in EdgeEntry() argument
106 : Costs(Costs) { in EdgeEntry()
117 Costs = nullptr; in invalidate()
169 MatrixPtr Costs; variable
382 NodeId addNode(OtherVectorT Costs) { in addNode() argument
384 VectorPtr AllocatedCosts = CostAlloc.getVector(std::move(Costs)); in addNode()
403 NodeId addNodeBypassingCostAllocator(OtherVectorPtrT Costs) { in addNodeBypassingCostAllocator() argument
404 NodeId NId = addConstructedNode(NodeEntry(Costs)); in addNodeBypassingCostAllocator()
416 EdgeId addEdge(NodeId N1Id, NodeId N2Id, OtherVectorT Costs) { in addEdge() argument
417 assert(getNodeCosts(N1Id).getLength() == Costs.getRows() && in addEdge()
418 getNodeCosts(N2Id).getLength() == Costs.getCols() && in addEdge()
421 MatrixPtr AllocatedCosts = CostAlloc.getMatrix(std::move(Costs)); in addEdge()
442 OtherMatrixPtrT Costs) { in addEdgeBypassingCostAllocator() argument
443 assert(getNodeCosts(N1Id).getLength() == Costs->getRows() && in addEdgeBypassingCostAllocator()
444 getNodeCosts(N2Id).getLength() == Costs->getCols() && in addEdgeBypassingCostAllocator()
447 EdgeId EId = addConstructedEdge(EdgeEntry(N1Id, N2Id, Costs)); in addEdgeBypassingCostAllocator()
473 void setNodeCosts(NodeId NId, OtherVectorT Costs) { in setNodeCosts() argument
474 VectorPtr AllocatedCosts = CostAlloc.getVector(std::move(Costs)); in setNodeCosts()
477 getNode(NId).Costs = AllocatedCosts; in setNodeCosts()
489 return getNode(NId).Costs; in getNodeCostsPtr()
515 void updateEdgeCosts(EdgeId EId, OtherMatrixT Costs) { in updateEdgeCosts() argument
516 MatrixPtr AllocatedCosts = CostAlloc.getMatrix(std::move(Costs)); in updateEdgeCosts()
519 getEdge(EId).Costs = AllocatedCosts; in updateEdgeCosts()
531 return getEdge(EId).Costs; in getEdgeCostsPtr()
538 return *getEdge(EId).Costs; in getEdgeCosts()