MCPcopy Create free account
hub / github.com/Genivia/ugrep / leaf

Method leaf

include/reflex/pattern.h:785–793  ·  view source on GitHub ↗

create a new leaf node.

Source from the content-addressed store, hash-verified

783 }
784 /// create a new leaf node.
785 Node *leaf()
786 {
787 if (next >= ALLOC)
788 {
789 list.push_back(new Node[ALLOC]);
790 next = 0;
791 }
792 return &list.back()[next++];
793 }
794 Node *tree; ///< root of the tree or NULL
795 List list; ///< block allocation list
796 uint16_t next; ///< block allocation, next available slot in last block

Callers

nothing calls this directly

Calls 1

backMethod · 0.45

Tested by

no test coverage detected