public TrieNodeCursor(ITrieDomain <TAtom> domain, TrieNode[] currentChildren, int childIndex) { this.domain = domain; CursorPathComponent currentPath = new CursorPathComponent(); currentPath.Children = currentChildren; currentPath.ChildIndex = childIndex; path.Push(currentPath); }
/// <summary> /// Initializes a new instance of the <see cref="Trie<TAtom, TValue>"/> class. /// </summary> /// <param name="domain">The domain of the atoms.</param> public Trie(ITrieDomain <TAtom> domain) { this.domain = domain; root = new TrieNode(); }