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

Method get

include/thundersvm/util/log.h:1481–1486  ·  view source on GitHub ↗

@brief Gets pointer from repository. If none found, nullptr is returned.

Source from the content-addressed store, hash-verified

1479
1480/// @brief Gets pointer from repository. If none found, nullptr is returned.
1481 T_Ptr* get(const T_Key& uniqKey) {
1482 iterator it = this->list().find(uniqKey);
1483 return it == this->list().end()
1484 ? nullptr
1485 : it->second;
1486 }
1487
1488 private:
1489 virtual void deepCopy(const AbstractRegistry<T_Ptr, std::map<T_Key, T_Ptr*>>& sr) ELPP_FINAL {

Callers 3

callbackMethod · 0.45
logBuilderMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected