MCPcopy Create free account
hub / github.com/RenderKit/oidn / Ref

Method Ref

core/ref.h:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55 public:
56 oidn_inline Ref() noexcept : ptr(nullptr) {}
57 oidn_inline Ref(std::nullptr_t) noexcept : ptr(nullptr) {}
58 oidn_inline Ref(const Ref& other) noexcept : ptr(other.ptr) { if (ptr) ptr->incRef(); }
59 oidn_inline Ref(Ref&& other) noexcept : ptr(other.ptr) { other.ptr = nullptr; }

Callers

nothing calls this directly

Calls 1

ptrFunction · 0.85

Tested by

no test coverage detected