MCPcopy Create free account
hub / github.com/catboost/catboost / Pointer

Method Pointer

library/cpp/dbg_output/dump.h:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51 template <class V>
52 inline void Pointer(const V* v) {
53 if (v && !Visited.contains((size_t)v)) {
54 Visited.insert((size_t)v);
55 *this << DumpRaw("(") << DumpRaw(TypeName(v).data()) << DumpRaw(")") << Hex((size_t)v) << DumpRaw(" -> ") << *v;
56 Visited.erase((size_t)v);
57 } else {
58 *this << DumpRaw("(") << DumpRaw(TypeName<V>().data()) << DumpRaw("*)nullptr");
59 }
60 }
61
62 THashSet<size_t> Visited;
63 };

Callers 1

DumpMethod · 0.45

Calls 7

DumpRawFunction · 0.85
TypeNameFunction · 0.50
HexFunction · 0.50
containsMethod · 0.45
insertMethod · 0.45
dataMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected