![]() |
Synthia
Generic and flexible data structure generator
|
Simple implementation of a labeled nodel.
| <T> | The type of the node's label |
Public Member Functions | |
| Node (T label) | |
| Creates a new node with given label. More... | |
| Node< T > | addChild (Node< T > c) |
| Adds a child to this node. More... | |
| List< Node< T > > | getChildren () |
| Gets the children of this node. More... | |
| T | getLabel () |
| Gets the label associated to this node. More... | |
| String | toString () |
Protected Attributes | |
| T | m_label |
| The node's label. More... | |
| List< Node< T > > | m_children |
| The children of this node. More... | |
| ca.uqac.lif.synthia.tree.Node< T >.Node | ( | T | label | ) |
| Node<T> ca.uqac.lif.synthia.tree.Node< T >.addChild | ( | Node< T > | c | ) |
| List<Node<T> > ca.uqac.lif.synthia.tree.Node< T >.getChildren | ( | ) |
| T ca.uqac.lif.synthia.tree.Node< T >.getLabel | ( | ) |
| String ca.uqac.lif.synthia.tree.Node< T >.toString | ( | ) |
|
protected |
|
protected |