#include <Genome.h>
Inheritance diagram for Teem::Genome:

Public Types | |
| enum | GenomeType { BIT_GENOME = 0, SIMPLE_GROWABLE_GENOME } |
| Types of genomes available. More... | |
Public Member Functions | |
| virtual | ~Genome () |
| Virtual destructor, doing nothing. | |
| virtual void | randomize (void)=0 |
| Randomize genome content. | |
| virtual void | mutate (void)=0 |
| Mutate genome content. | |
| virtual void | cross (const Genome *other)=0 |
| Cross genome content over other. | |
| virtual Genome * | clone (void)=0 |
| Clone this genome, returns the new genome. | |
| virtual void | save (Ishtar::OutputStream *stream)=0 |
| Save the genome to a stream. | |
Static Public Member Functions | |
| static Genome * | create (GenomeType type, size_t size, bool disableAssertion=false) |
| Create a genome. | |
| static Genome * | load (Ishtar::InputStream *stream, bool disableAssertion=false) |
| Load a genome from a stream. | |
Public Attributes | |
| bool | disableAssertion |
| should we allays assert or do we handle the errors | |
| bool | error |
| did an error occur while loading the genome | |
|
|
Types of genomes available.
|
1.4.2