Empirical
|
A single instruction in a linear genome. More...
#include <LinearCode.h>
Public Types | |
using | args_t = emp::array< ARG_TYPE, ARG_COUNT > |
Public Member Functions | |
Instruction (size_t _id=0, const args_t &in_args={}) | |
Instruction (const Instruction &)=default | |
Instruction (Instruction &&)=default | |
Instruction & | operator= (const Instruction &)=default |
Copy operator. More... | |
Instruction & | operator= (Instruction &&)=default |
Move operator. More... | |
bool | operator< (const Instruction &other) const |
Test if this instruction is less than another. More... | |
void | Set (size_t _id, const args_t &in_args) |
Explicitly set the instruction type and specific arguments for this instruction. More... | |
bool | operator== (const Instruction &in) const |
Test if this instruction is identical to another. More... | |
Public Attributes | |
size_t | id |
Unique value identifying which instruction this is. More... | |
args_t | args |
A set of arguments defining the specific behavior of this instruction. More... | |
A single instruction in a linear genome.
using emp::Instruction< ARG_COUNT, ARG_TYPE >::args_t = emp::array<ARG_TYPE, ARG_COUNT> |
|
inline |
|
default |
|
default |
|
inline |
Test if this instruction is less than another.
|
default |
Copy operator.
|
default |
Move operator.
|
inline |
Test if this instruction is identical to another.
|
inline |
Explicitly set the instruction type and specific arguments for this instruction.
args_t emp::Instruction< ARG_COUNT, ARG_TYPE >::args |
A set of arguments defining the specific behavior of this instruction.
size_t emp::Instruction< ARG_COUNT, ARG_TYPE >::id |
Unique value identifying which instruction this is.