#include <gp/eoStParseTreeDepthInit.h>
Public Types | |
|
typedef eoParseTree< FType, Node > | EoType |
Public Member Functions | |
| eoStParseTreeDepthInit (unsigned _max_depth, const std::vector< Node > &_node, const int &_return_type, bool _grow=true) | |
| Constructor _max_depth The maximum depth of a tree. | |
| virtual std::string | className () const |
| My class name. | |
| void | operator() (EoType &_tree) |
| initialize a tree | |
Private Member Functions | |
| bool | generate (std::list< Node > &sequence, int the_max, int request_type) |
Private Attributes | |
| unsigned | max_depth |
|
map< int, map< int, std::vector< Node > > > | node |
| int | return_type |
| bool | grow |
Definition at line 61 of file eoStParseTreeDepthInit.h.
| eoStParseTreeDepthInit< FType, Node >::eoStParseTreeDepthInit | ( | unsigned | _max_depth, | |
| const std::vector< Node > & | _node, | |||
| const int & | _return_type, | |||
| bool | _grow = true | |||
| ) | [inline] |
Constructor _max_depth The maximum depth of a tree.
| _initializor | A std::vector containing the possible nodes | |
| _grow | False results in a full tree, True result is a randomly grown tree |
Definition at line 73 of file eoStParseTreeDepthInit.h.
References eoStParseTreeDepthInit< FType, Node >::node.
| void eoStParseTreeDepthInit< FType, Node >::operator() | ( | EoType & | _tree | ) | [inline, virtual] |
initialize a tree
| _tree | : the tree to be initialized |
Implements eoUF< eoParseTree< FType, Node > &, void >.
Definition at line 125 of file eoStParseTreeDepthInit.h.
References eoStParseTreeDepthInit< FType, Node >::generate(), eoStParseTreeDepthInit< FType, Node >::max_depth, eoStParseTreeDepthInit< FType, Node >::return_type, and gp_parse_tree::parse_tree< T >::swap().
1.4.7