Exemple #1
0
            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);
            }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Trie&lt;TAtom, TValue&gt;"/> class.
 /// </summary>
 /// <param name="domain">The domain of the atoms.</param>
 public Trie(ITrieDomain <TAtom> domain)
 {
     this.domain = domain;
     root        = new TrieNode();
 }