genetiK::gp::st::Gene Class Reference
[Strongly Typed Genetic Programming framework]

Gene: The node of the genetic programming tree. More...

#include <Gene.h>

Inheritance diagram for genetiK::gp::st::Gene:

Inheritance graph
[legend]
Collaboration diagram for genetiK::gp::st::Gene:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gene (GeneType type, unsigned char arity,...)
 creates a Gene
virtual ~Gene ()
 destructor
GeneType getType () const
 return the type of the node
GeneType getArgumentType (unsigned char i) const
 return the type of one child
virtual list< Gene * > extractListByType (GeneType geneType)
 Extract a typed list from this branch.

Detailed Description

Gene: The node of the genetic programming tree.

This class extends the gp::Gene and adds the type constraints.


Constructor & Destructor Documentation

genetiK::gp::st::Gene::Gene GeneType  type,
unsigned char  arity,
  ...
 

creates a Gene

Gene default contructor

Parameters:
type specifies the type of the node
arity specifies the arity of the node
... specifies a list with the types of the node's children


Member Function Documentation

list< Gene * > genetiK::gp::st::Gene::extractListByType GeneType  geneType  )  [virtual]
 

Extract a typed list from this branch.

Parameters:
geneType the type
See also:
gp::st::Individual::extractListByType(GeneType geneType)

GeneType genetiK::gp::st::Gene::getArgumentType unsigned char  i  )  const [inline]
 

return the type of one child

return the type of one child

Parameters:
i the child index
Returns:
the type of the child node

GeneType genetiK::gp::st::Gene::getType  )  const [inline]
 

return the type of the node

return the type of the node

Returns:
the type of the node


The documentation for this class was generated from the following files:
Generated on Thu Feb 23 12:22:33 2006 for GenetiK by  doxygen 1.4.6