Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

genes.h File Reference

More...

#include <magic/mobject.h>
#include <magic/mdatastream.h>
#include "nhp/genetics.h"

Go to the source code of this file.

Compounds

class  AnyFloatGene
 Abstract interface class for genes that encode a floating-point value. More...

class  AnyIntGene
 Abstract interface for any genes that encode an integer value. More...

class  BinaryGene
 A binary gene with values 0 and 1. More...

class  BitFloatGene
 Floating point value encoded genetically as a binary vector. More...

class  BitIntGene
 Integer gene that is implemented as a vector of BinaryGene genes. More...

class  FloatGene
 Floating-point gene with native floating point representation; implementation of Evolution Strategies real-valued genes. More...

class  Gene
 The abstract concept of a genetic structure encoding some specific phenotypic feature; the atomic unit of a Genstruct. More...

class  InterGene
 A reference gene. More...

class  IntGene
 Integer (or multivalue) gene with independent values. More...


Defines

#define DefGene(gclass)


Detailed Description

Definition in file genes.h.


Define Documentation

#define DefGene gclass   
 

Value:

class gclass : public Gene { \
    decl_dynamic (gclass);\
  public:\
                        gclass              (const GeneticID& name=NULL) : Gene (name) {;}\
                        gclass              (const gclass& o) : Gene (o) {;}\
    void                init                () {;}\
    bool                pointMutate         (const MutationRate& k) {return false;}\
    void                copy                (const Genstruct& o) {Gene::copy(o);}\
    Genstruct*          replicate           () const {return new gclass (id);}\
    bool                execute             (const GeneticMsg& msg) const;\
    void                addPrivateGenes     (Gentainer& g, const StringMap& params);\
};
Macro to make making certain gene subclasses easier (see the header).

Definition at line 102 of file genes.h.


Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18