eoStPointMutation< FType, Node > Class Template Reference
[StParseTree]

eoStPointMutation --> replace a Node with a Node of the same arity and type More...

#include <gp/eoStParseTreeOp.h>

Inheritance diagram for eoStPointMutation< FType, Node >:

eoMonOp< eoParseTree< FType, Node > > eoOp< eoParseTree< FType, Node > > eoUF< eoParseTree< FType, Node > &, bool > eoFunctorBase List of all members.

Public Types

typedef eoParseTree< FType,
Node
EoType

Public Member Functions

 eoStPointMutation (std::vector< Node > &_node)
 Constructor.
virtual std::string className () const
 the class name
virtual ~eoStPointMutation ()
 Dtor.
bool operator() (EoType &_eo1)
 Mutate an individual.

Private Attributes

map< int, map< int, std::vector<
Node > > > 
node

Detailed Description

template<class FType, class Node>
class eoStPointMutation< FType, Node >

eoStPointMutation --> replace a Node with a Node of the same arity and type

Definition at line 195 of file eoStParseTreeOp.h.


Constructor & Destructor Documentation

template<class FType, class Node>
eoStPointMutation< FType, Node >::eoStPointMutation ( std::vector< Node > &  _node  )  [inline]

Constructor.

Parameters:
_initializor The std::vector of Nodes given to the eoGpDepthInitializer

Definition at line 205 of file eoStParseTreeOp.h.

References eoStPointMutation< FType, Node >::node.


Member Function Documentation

template<class FType, class Node>
bool eoStPointMutation< FType, Node >::operator() ( EoType _eo1  )  [inline, virtual]

Mutate an individual.

Parameters:
_eo1 The individual that is to be changed

Implements eoUF< eoParseTree< FType, Node > &, bool >.

Definition at line 234 of file eoStParseTreeOp.h.

References eoStPointMutation< FType, Node >::node, eoRng::random(), and gp_parse_tree::parse_tree< T >::size().


The documentation for this class was generated from the following file:
Generated on Thu Apr 19 11:02:33 2007 for EO by  doxygen 1.4.7