C# Class LevenshteinAutomaton.TrieNode

Prefix tree node
Afficher le fichier Open project: ibendrup/LevenshteinAutomaton Class Usage Examples

Méthodes publiques

Свойство Type Description
Children TrieNode>.Dictionary
Key String

Méthodes publiques

Méthode Description
AddChild ( char c, TrieNode child ) : bool

Add child node

ContainsChildValue ( char letter ) : bool

Check if node contains child for given letter

GetChild ( String wordOrPrefix ) : TrieNode

Get node for given word or prefix if exists

GetChild ( char letter ) : TrieNode

Get child node by letter

GetWord ( string word ) : TrieNode

Get node for given word if exists

ToString ( ) : String
TrieNode ( String key ) : System

Init node with the given key

Method Details

AddChild() public méthode

Add child node
public AddChild ( char c, TrieNode child ) : bool
c char Letter
child TrieNode Node to add
Résultat bool

ContainsChildValue() public méthode

Check if node contains child for given letter
public ContainsChildValue ( char letter ) : bool
letter char
Résultat bool

GetChild() public méthode

Get node for given word or prefix if exists
public GetChild ( String wordOrPrefix ) : TrieNode
wordOrPrefix String
Résultat TrieNode

GetChild() public méthode

Get child node by letter
public GetChild ( char letter ) : TrieNode
letter char
Résultat TrieNode

GetWord() public méthode

Get node for given word if exists
public GetWord ( string word ) : TrieNode
word string
Résultat TrieNode

ToString() public méthode

public ToString ( ) : String
Résultat String

TrieNode() public méthode

Init node with the given key
public TrieNode ( String key ) : System
key String Key
Résultat System

Property Details

Children public_oe property

Children node list
public Dictionary Children
Résultat TrieNode>.Dictionary

Key public_oe property

Node's key
public String Key
Résultat String