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

Method GetValuePtr

library/cpp/containers/comptrie/opaque_trie_iterator.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 const char* TOpaqueTrieIterator::GetValuePtr() const {
129 if (!Forks.Empty()) {
130 const TFork& lastFork = Forks.Top();
131 Y_ASSERT(lastFork.Node.IsFinal() && lastFork.CurrentDirection == D_FINAL);
132 return Trie.Data + lastFork.GetValueOffset();
133 }
134 Y_ASSERT(AtEmptyValue);
135 return EmptyValue;
136 }
137
138 //-------------------------------------------------------------------------
139

Callers

nothing calls this directly

Calls 4

GetValueOffsetMethod · 0.80
EmptyMethod · 0.45
TopMethod · 0.45
IsFinalMethod · 0.45

Tested by

no test coverage detected