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

eoStHoistMutation --> replace the individual with one of its strongly typed subtree's More...

#include <gp/eoStParseTreeOp.h>

Inheritance diagram for eoStHoistMutation< 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

 eoStHoistMutation (eoInit< EoType > &_init, unsigned _max_length)
 Constructor.
virtual std::string className () const
 the class name
virtual ~eoStHoistMutation ()
 Dtor.
bool operator() (EoType &_eo1)
 Mutate an individual.

Private Attributes

unsigned max_length
eoInit< EoType > & initializer

Detailed Description

template<class FType, class Node>
class eoStHoistMutation< FType, Node >

eoStHoistMutation --> replace the individual with one of its strongly typed subtree's

Definition at line 258 of file eoStParseTreeOp.h.


Constructor & Destructor Documentation

template<class FType, class Node>
eoStHoistMutation< FType, Node >::eoStHoistMutation ( eoInit< EoType > &  _init,
unsigned  _max_length 
) [inline]

Constructor.

Parameters:
_init An instantiation of eoStDepthInit
_max_length the maximum size of an individual

Definition at line 268 of file eoStParseTreeOp.h.


Member Function Documentation

template<class FType, class Node>
bool eoStHoistMutation< 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 282 of file eoStParseTreeOp.h.

References eoStHoistMutation< FType, Node >::initializer, 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