30 references to _nodes
Microsoft.ML.Tokenizers.Tests (30)
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (30)
333
_units[0] =
_nodes
[0].Unit;
334
_labels[0] =
_nodes
[0].Label;
354
uint childId =
_nodes
[(int)id].Child;
366
byte unitLabel =
_nodes
[(int)childId].Label;
373
_nodes
[(int)childId].HasSibling = true;
391
if (
_nodes
[(int)id].Child == 0)
393
_nodes
[(int)childId].IsState = true;
396
_nodes
[(int)childId].Sibling =
_nodes
[(int)id].Child;
397
_nodes
[(int)childId].Label = keyLabel;
398
_nodes
[(int)id].Child = childId;
402
_nodes
[(int)id].Value = value;
410
id = (uint)
_nodes
.Size;
411
_nodes
.Append();
416
_nodes
[(int)id] = new DawgNode();
438
_nodes
[0].Label = 0xFF;
462
for (; id != 0; id =
_nodes
[(int)id].Sibling)
464
uint unit =
_nodes
[(int)id].Unit;
465
byte label =
_nodes
[(int)id].Label;
474
for (uint i =
_nodes
[(int)nodeId].Sibling; i != 0; i =
_nodes
[(int)i].Sibling)
489
for (uint i = nodeId; i != 0; i =
_nodes
[(int)i].Sibling, --unitId)
491
if (
_nodes
[(int)i].Unit != _units[(int)unitId].Unit ||
_nodes
[(int)i].Label != _labels[(int)unitId])
564
for (uint i = nodeId; i != 0; i =
_nodes
[(int)i].Sibling)
582
for (uint i = nodeId; i != 0; i =
_nodes
[(int)i].Sibling)
584
_units[(int)unitId] =
_nodes
[(int)i].Unit;
585
_labels[(int)unitId] =
_nodes
[(int)i].Label;
596
next =
_nodes
[(int)i].Sibling;
600
_nodes
[(int)_nodeStack!.Peek()].Child = matchId;