MCPcopy Create free account
hub / github.com/PDAL/PDAL / replace

Method replace

pdal/PipelineManager.cpp:538–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536
537
538void PipelineManager::replace(Stage *sOld, Stage *sNew)
539{
540 Utils::remove(m_stages, sNew);
541 for (Stage * & s : m_stages)
542 {
543 if (s == sOld)
544 {
545 s = sNew;
546 // Copy inputs from the old stage to new one.
547 for (Stage *ss : sOld->getInputs())
548 sNew->setInput(*ss);
549 }
550 // Reset the inputs that refer to the replaced stage.
551 for (Stage * & ss : s->getInputs())
552 if (ss == sOld)
553 ss = sNew;
554 }
555}
556
557void PipelineManager::destroyStage(Stage *s)
558{

Callers 15

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
adderMethod · 0.45
makeJSONPipelineMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
generateFilenameFunction · 0.45

Calls 1

removeFunction · 0.85

Tested by 9

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36