|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TernaryTree
Interface describing ternary trees.
Method Summary | |
---|---|
Subsearch |
find_next(int[] key,
int index,
int node_num)
Returns a Subsearch representing the psotion in the tree of
the next non-null data discovered in traversing the given key. |
int |
find(int[] key)
Finds the node corresponding to the given key. |
int |
get_equal_node(int node)
Gets the node number from the equal link of the given node. |
String |
get_key(List<Integer> stack)
Derive a string from the list of codepoints representing the key. |
int |
get_node_data_ptr(int node)
Get the data pointer value from the nominated node. |
void |
initialize_data_array()
When all the data for the tree has been added, initialize the tree data to minimize space requirements. |
Iterator |
iterator()
Gets an in-order iterator over the tree. |
Method Detail |
---|
int get_node_data_ptr(int node)
node
- the node.
int find(int[] key)
key
- the key as an array of codepoints.
void initialize_data_array() throws HyphenationException
HyphenationException
- if the tree data has already been initialized.String get_key(List<Integer> stack)
stack
- the list of codepoints representing the key.
int get_equal_node(int node)
node
- the node whoe equal link is required.
Subsearch find_next(int[] key, int index, int node_num)
Subsearch
representing the psotion in the tree of
the next non-null data discovered in traversing the given key.This method allows successive matches on a key to be discovered in order.
key
- the key as an array of codepoints.index
- the current index position in the key.node_num
- the current node number. The equal pointer of this
node will be the resumption point of the search.
Subsearch
for the given key, or null.Iterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |