EvolvingObjects
eoParseTree< FType, Node > Class Template Reference

Implementation of parse-tree for genetic programming. More...

#include <gp/eoParseTree.h>

Inheritance diagram for eoParseTree< FType, Node >:
EO< FType > gp_parse_tree::parse_tree< Node > eoObject eoPersistent eoPrintable

List of all members.

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.

Detailed Description

template<class FType, class Node>
class eoParseTree< FType, Node >

Implementation of parse-tree for genetic programming.

Examples:
t-eoSymreg.cpp.

Definition at line 58 of file eoParseTree.h.


Constructor & Destructor Documentation

template<class FType, class Node>
eoParseTree< FType, Node >::eoParseTree ( const parse_tree< Node > &  tree) [inline]

Copy Constructor.

Parameters:
treeThe tree to copy

Definition at line 83 of file eoParseTree.h.

template<class FType, class Node>
eoParseTree< FType, Node >::eoParseTree ( std::istream &  is) [inline]

To read me from a stream.

Parameters:
isThe std::istream

Definition at line 106 of file eoParseTree.h.


Member Function Documentation

template<class FType, class Node>
virtual void eoParseTree< FType, Node >::pruneTree ( unsigned  _size) [inline, virtual]
template<class FType, class Node>
void eoParseTree< FType, Node >::printOn ( std::ostream &  os) const [inline, virtual]

To print me on a stream.

Parameters:
osThe std::ostream

Reimplemented from EO< FType >.

Definition at line 118 of file eoParseTree.h.

template<class FType, class Node>
void eoParseTree< FType, Node >::readFrom ( std::istream &  is) [inline, virtual]

To read me from a stream.

Parameters:
isThe std::istream

Reimplemented from EO< FType >.

Definition at line 132 of file eoParseTree.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends