|
EvolvingObjects
|
Implementation of parse-tree for genetic programming. More...
#include <gp/eoParseTree.h>
Public Types | |
| typedef parse_tree< Node >::subtree | Subtree |
| typedef Node | reference |
| typedef const reference | const_reference |
Public Member Functions | |
| eoParseTree (void) | |
| Default Constructor. | |
| eoParseTree (const parse_tree< Node > &tree) | |
| Copy Constructor. | |
| virtual void | pruneTree (unsigned _size) |
| To prune me to a certain size. | |
| eoParseTree (std::istream &is) | |
| To read me from a stream. | |
| std::string | className (void) const |
| My class name. | |
| void | printOn (std::ostream &os) const |
| To print me on a stream. | |
| void | readFrom (std::istream &is) |
| To read me from a stream. | |
Implementation of parse-tree for genetic programming.
Definition at line 58 of file eoParseTree.h.
| eoParseTree< FType, Node >::eoParseTree | ( | const parse_tree< Node > & | tree | ) | [inline] |
| eoParseTree< FType, Node >::eoParseTree | ( | std::istream & | is | ) | [inline] |
To read me from a stream.
| is | The std::istream |
Definition at line 106 of file eoParseTree.h.
| virtual void eoParseTree< FType, Node >::pruneTree | ( | unsigned | _size | ) | [inline, virtual] |
To prune me to a certain size.
| _size | My maximum size |
Definition at line 90 of file eoParseTree.h.
Referenced by eoSubtreeXOver< FType, Node >::operator()(), eoBranchMutation< FType, Node >::operator()(), eoExpansionMutation< FType, Node >::operator()(), and eoCollapseSubtreeMutation< FType, Node >::operator()().
| void eoParseTree< FType, Node >::printOn | ( | std::ostream & | os | ) | const [inline, virtual] |
To print me on a stream.
| os | The std::ostream |
Reimplemented from EO< FType >.
Definition at line 118 of file eoParseTree.h.
| void eoParseTree< FType, Node >::readFrom | ( | std::istream & | is | ) | [inline, virtual] |
To read me from a stream.
| is | The std::istream |
Reimplemented from EO< FType >.
Definition at line 132 of file eoParseTree.h.