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

Method TWriteableNode

library/cpp/containers/comptrie/writeable_node.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5namespace NCompactTrie {
6 TWriteableNode::TWriteableNode()
7 : LeafPos(nullptr)
8 , LeafLength(0)
9 , ForwardOffset(NPOS)
10 , LeftOffset(NPOS)
11 , RightOffset(NPOS)
12 , Label(0)
13 {
14 }
15
16 static size_t GetOffsetFromEnd(const TNode& node, size_t absOffset) {
17 return absOffset ? absOffset - node.GetOffset() - node.GetCoreLength() : NPOS;

Callers

nothing calls this directly

Calls 8

GetOffsetFromEndFunction · 0.85
GetLeafOffsetMethod · 0.80
GetForwardOffsetMethod · 0.80
GetLeftOffsetMethod · 0.80
GetRightOffsetMethod · 0.80
IsFinalMethod · 0.45
GetLeafLengthMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected