MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / unregister

Method unregister

include/thundersvm/util/log.h:1549–1562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547 }
1548
1549 virtual void unregister(T_Ptr*& ptr) ELPP_FINAL {
1550 if (ptr) {
1551 iterator iter = this->begin();
1552 for (; iter != this->end(); ++iter) {
1553 if (ptr == *iter) {
1554 break;
1555 }
1556 }
1557 if (iter != this->end() && *iter != nullptr) {
1558 this->list().erase(iter);
1559 base::utils::safeDelete(*iter);
1560 }
1561 }
1562 }
1563
1564 virtual inline void registerNew(T_Ptr* ptr) ELPP_FINAL {
1565 this->list().push_back(ptr);

Callers

nothing calls this directly

Calls 3

safeDeleteFunction · 0.85
endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected