File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323namespace sgpmode {
2424
2525/* *
26+ * Used to generate starter genomes and read genomes from a json.
2627* @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
27- * The ProgramBuilder is used to generate starter genomes and read genomes from a json.
2828*/
2929template <typename HW_SPEC_T >
3030class ProgramBuilder {
Original file line number Diff line number Diff line change 1515
1616namespace sgpmode {
1717/* *
18- * @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
1918* The SignalGP version of the base host
19+ * @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
2020*/
2121template <typename HW_SPEC_T >
2222class SGPHost : public Host {
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ namespace sgpmode {
99// ability to "layer on" different mutaiton types).
1010// For now, it just replicates functionality of previous mutator
1111/* *
12+ * Used to mutate the program of organisms
1213* @tparam PROGRAM_T: The type representing the program that is going to be mutated
1314* @tparam INST_LIBRARY_T: Contains all instructions that can be mutated.
14- * Purpose: Used to mutate the program of organisms
1515*/
1616template <typename PROGRAM_T , typename INST_LIBRARY_T >
1717class SGPMutator {
Original file line number Diff line number Diff line change 1111namespace sgpmode {
1212
1313/* *
14- * @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
1514* The SignalGP version of the base symbiont
15+ * @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
1616*/
1717template <typename HW_SPEC_T >
1818class SGPSymbiont : public Symbiont {
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ namespace sgpmode {
2424enum class ReproState { NONE =0 , ATTEMPTING , IN_PROGRESS };
2525
2626/* *
27- * @tparam WORLD_T: The type representing to the world the simulation is in
2827 * The CPUState holds all state that can be accessed by instructions in the
2928 * organism's genomes. Each organism has its own CPUState.
29+ * @tparam WORLD_T: The type representing to the world the simulation is in
3030 */
3131// TODO - write tests
3232// TODO - cleanup member variables (reduce down to only what we're using)
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ namespace sgpmode {
88
99// TODO - write tests for IORingBuffer
1010/* *
11- * @tparam T, the type of what is being stored in the RingBuffer
1211*A helper class for a ring buffer that keeps the latest `len` inputs and
1312*discards the rest.
13+ *@tparam T, the type of what is being stored in the RingBuffer
1414*/
1515template <typename T>
1616class RingBuffer {
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ namespace sgpmode {
2020
2121
2222/* *
23- * @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
2423 * Represents the virtual CPU and the program genome for an organism in the SGP
2524 * mode.
25+ * @tparam HW_SPEC_T: A specifier that bundles many required types for SGP scripts together
2626 */
2727template <typename HW_SPEC_T >
2828class SGPHardware {
Original file line number Diff line number Diff line change 99namespace sgpmode {
1010
1111/* *
12- * @tparam T, the type of what is being stored in the stack
12+ *
1313 * The Stacks are used as a first in, last out data structure.
14+ * @tparam T, the type of what is being stored in the stack
1415 */
1516template <typename T>
1617class Stacks {
Original file line number Diff line number Diff line change @@ -18,16 +18,16 @@ namespace sgpmode::tasks {
1818 TaskSet is adapted from class of the same name from
1919 https://github.com/amlalejini/directed-digital-evolution
2020
21- @tparam INPUT_T: A type containing vector of inputs, OUTPUT_T: A type representing output of a task given INPUT_T
22-
23- Purpose: TaskSet defines a set of tasks where each task can be identified by a numeric ID
21+ TaskSet defines a set of tasks where each task can be identified by a numeric ID
2422 and a given string name.
2523
2624 A Task defines a mapping from a given set (vector) of inputs (INPUT_T) to a
2725 given output (OUTPUT_T). This mapping is specified by the task's calc_output_fun,
2826 which takes a vector of inputs and maps it to the correct output for the given
2927 task.
3028
29+ @tparam INPUT_T: A type containing vector of inputs, OUTPUT_T: A type representing output of a task given INPUT_T
30+
3131*/
3232template <typename INPUT_T , typename OUTPUT_T >
3333class TaskSet {
You can’t perform that action at this time.
0 commit comments