MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / RemoveNoOps

Function RemoveNoOps

src/OpenColorIO/OpOptimizers.cpp:113–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113int RemoveNoOps(OpRcPtrVec & opVec)
114{
115 int count = 0;
116 OpRcPtrVec::const_iterator iter = opVec.begin();
117 while (iter != opVec.end())
118 {
119 if ((*iter)->isNoOp())
120 {
121 iter = opVec.erase(iter);
122 ++count;
123 }
124 else
125 {
126 ++iter;
127 }
128 }
129 return count;
130}
131
132void FinalizeOps(OpRcPtrVec & opVec)
133{

Callers 1

optimizeMethod · 0.85

Calls 4

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
isNoOpMethod · 0.45

Tested by

no test coverage detected