Vita
|
A gene is a unit of heredity in a living organism. More...
#include <gene.h>
Public Types | |
enum | : decltype(K) { k_args = K } |
using | arg_pack = small_vector< packed_index_t, K > |
using | packed_index_t = std::uint16_t |
Public Member Functions | |
small_vector< locus, K > | arguments () const |
basic_gene (const std::pair< symbol *, std::vector< index_t > > &) | |
basic_gene (const symbol &, index_t, index_t) | |
basic_gene (const terminal &) | |
locus | locus_of_argument (std::size_t) const |
Public Attributes | |
arg_pack | args |
terminal_param_t | par |
const symbol * | sym |
A gene is a unit of heredity in a living organism.
K | the maximum function 's number of arguments |
The class gene
is the building block of a i_mep
individual.
using vita::basic_gene< K >::arg_pack = small_vector<packed_index_t, K> |
using vita::basic_gene< K >::packed_index_t = std::uint16_t |
|
inline |
arg_pack vita::basic_gene< K >::args |
terminal_param_t vita::basic_gene< K >::par |
const symbol* vita::basic_gene< K >::sym |