Antkeeper  0.0.1
Classes | Typedefs
ant::gene Namespace Reference

Classes

struct  monophenic_gene
 Gene with a single phene. More...
 
struct  polyphenic_gene
 Gene with caste-specific phenes. More...
 

Typedefs

typedef polyphenic_gene< phene::antennaeantennae
 Polyphenic antennae gene. More...
 
typedef polyphenic_gene< phene::body_sizebody_size
 Polyphenic body size gene. More...
 
typedef monophenic_gene< phene::cocooncocoon
 Monophenic cocoon gene. More...
 
typedef monophenic_gene< phene::dietdiet
 Monophenic diet gene. More...
 
typedef monophenic_gene< phene::eggegg
 Monophenic egg gene. More...
 
typedef polyphenic_gene< phene::eyeseyes
 Polyphenic eyes gene. More...
 
typedef monophenic_gene< phene::foraging_timeforaging_time
 Monophenic foraging time gene. More...
 
typedef monophenic_gene< phene::founding_modefounding_mode
 Monophenic founding mode gene. More...
 
typedef polyphenic_gene< phene::gastergaster
 Polyphenic gaster gene. More...
 
typedef polyphenic_gene< phene::headhead
 Polyphenic head gene. More...
 
typedef monophenic_gene< phene::larvalarva
 Monophenic larva gene. More...
 
typedef polyphenic_gene< phene::legslegs
 Polyphenic legs gene. More...
 
typedef polyphenic_gene< phene::mandiblesmandibles
 Polyphenic mandibles gene. More...
 
typedef polyphenic_gene< phene::mesosomamesosoma
 Polyphenic mesosoma gene. More...
 
typedef monophenic_gene< phene::nest_sitenest_site
 Monophenic nest site gene. More...
 
typedef polyphenic_gene< phene::ocelliocelli
 Polyphenic ocelli gene. More...
 
typedef polyphenic_gene< phene::pigmentationpigmentation
 Polyphenic pigmentation gene. More...
 
typedef polyphenic_gene< phene::pilositypilosity
 Polyphenic pilosity gene. More...
 
typedef polyphenic_gene< phene::sculpturingsculpturing
 Polyphenic sculpturing gene. More...
 
typedef polyphenic_gene< phene::stingsting
 Polyphenic sting gene. More...
 
typedef polyphenic_gene< phene::waistwaist
 Polyphenic waist gene. More...
 
typedef polyphenic_gene< phene::wingswings
 Polyphenic wings gene. More...
 

Functions

template<class T >
void deserialize_gene (monophenic_gene< T > &gene, void(*deserialize_phene)(T &, const json &, resource_manager *), const json &gene_element, resource_manager *resource_manager)
 Deserializes a gene. More...
 
template<class T >
void deserialize_gene (polyphenic_gene< T > &gene, void(*deserialize_phene)(T &, const json &, resource_manager *), const json &gene_element, resource_manager *resource_manager)
 Deserializes a gene. More...
 

Typedef Documentation

◆ antennae

Polyphenic antennae gene.

Definition at line 30 of file gene/antennae.hpp.

◆ body_size

Polyphenic body size gene.

Definition at line 30 of file gene/body-size.hpp.

◆ cocoon

Monophenic cocoon gene.

Definition at line 30 of file gene/cocoon.hpp.

◆ diet

Monophenic diet gene.

Definition at line 30 of file gene/diet.hpp.

◆ egg

Monophenic egg gene.

Definition at line 30 of file gene/egg.hpp.

◆ eyes

Polyphenic eyes gene.

Definition at line 30 of file gene/eyes.hpp.

◆ foraging_time

Monophenic foraging time gene.

Definition at line 30 of file gene/foraging-time.hpp.

◆ founding_mode

Monophenic founding mode gene.

Definition at line 30 of file gene/founding-mode.hpp.

◆ gaster

Polyphenic gaster gene.

Definition at line 30 of file gene/gaster.hpp.

◆ head

Polyphenic head gene.

Definition at line 30 of file gene/head.hpp.

◆ larva

Monophenic larva gene.

Definition at line 30 of file gene/larva.hpp.

◆ legs

Polyphenic legs gene.

Definition at line 30 of file gene/legs.hpp.

◆ mandibles

Polyphenic mandibles gene.

Definition at line 30 of file gene/mandibles.hpp.

◆ mesosoma

Polyphenic mesosoma gene.

Definition at line 30 of file gene/mesosoma.hpp.

◆ nest_site

Monophenic nest site gene.

Definition at line 30 of file gene/nest-site.hpp.

◆ ocelli

Polyphenic ocelli gene.

Definition at line 30 of file gene/ocelli.hpp.

◆ pigmentation

Polyphenic pigmentation gene.

Definition at line 30 of file gene/pigmentation.hpp.

◆ pilosity

Polyphenic pilosity gene.

Definition at line 30 of file gene/pilosity.hpp.

◆ sculpturing

Polyphenic sculpturing gene.

Definition at line 30 of file gene/sculpturing.hpp.

◆ sting

Polyphenic sting gene.

Definition at line 30 of file gene/sting.hpp.

◆ waist

Polyphenic waist gene.

Definition at line 30 of file gene/waist.hpp.

◆ wings

Polyphenic wings gene.

Definition at line 30 of file gene/wings.hpp.

Function Documentation

◆ deserialize_gene() [1/2]

template<class T >
void ant::gene::deserialize_gene ( monophenic_gene< T > &  gene,
void(*)(T &, const json &, resource_manager *)  deserialize_phene,
const json gene_element,
resource_manager resource_manager 
)

Deserializes a gene.

Template Parameters
TPhene type.
Parameters
geneGene to deserialize.
deserialize_phenePhene deserialization function.
gene_elementJSON element containing a gene definition.
resource_managerResource manager pointer.

Definition at line 43 of file gene-loader.hpp.

◆ deserialize_gene() [2/2]

template<class T >
void ant::gene::deserialize_gene ( polyphenic_gene< T > &  gene,
void(*)(T &, const json &, resource_manager *)  deserialize_phene,
const json gene_element,
resource_manager resource_manager 
)

Deserializes a gene.

Template Parameters
TPhene type.
Parameters
geneGene to deserialize.
deserialize_phenePhene deserialization function.
gene_elementJSON element containing a gene definition.
resource_managerResource manager pointer.

Definition at line 55 of file gene-loader.hpp.