MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / erase

Method erase

pxr/exec/exec/uncompilationRuleSet.cpp:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Exec_UncompilationRuleSet::iterator
34Exec_UncompilationRuleSet::erase(
35 const Exec_UncompilationRuleSet::iterator &it)
36{
37 iterator last = std::prev(_rules.end());
38 if (it != last) {
39 *it = std::move(*last);
40 }
41
42 // To handle the case of growing the vector, resize needs a value to
43 // initialize new elements. However, we are only shrinking the vector, so
44 // this value will never be used.
45 _rules.resize(
46 _rules.size() - 1,
47 Exec_UncompilationRule(
48 Exec_NodeUncompilationTarget(0),
49 EsfEditReason::None));
50 return it;
51}
52
53std::string
54Exec_UncompilationRuleSet::GetDescription() const

Callers 15

RemoveMethod · 0.45
ReleaseSharedSpecsMethod · 0.45
_TraverseMethod · 0.45
ClearDataForOutputMethod · 0.45
_TraverseMethod · 0.45
_RemoveConnectionMethod · 0.45

Calls 4

Exec_UncompilationRuleFunction · 0.85
resizeMethod · 0.80
endMethod · 0.45
sizeMethod · 0.45

Tested by 6

ReleaseSharedSpecsMethod · 0.36
WillDeleteMethod · 0.36
_ValidateConnectionsFunction · 0.36
TestVectorUsageFunction · 0.36