Skip to content

Commit be216f1

Browse files
committed
Fixed template params absorbing general class documentation
1 parent b14f32e commit be216f1

9 files changed

Lines changed: 12 additions & 11 deletions

File tree

source/sgp_mode/ProgramBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
namespace 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
*/
2929
template<typename HW_SPEC_T>
3030
class ProgramBuilder {

source/sgp_mode/SGPHost.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
namespace 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
*/
2121
template <typename HW_SPEC_T>
2222
class SGPHost : public Host {

source/sgp_mode/SGPMutator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*/
1616
template<typename PROGRAM_T, typename INST_LIBRARY_T>
1717
class SGPMutator {

source/sgp_mode/SGPSymbiont.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
namespace 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
*/
1717
template<typename HW_SPEC_T>
1818
class SGPSymbiont : public Symbiont {

source/sgp_mode/hardware/CPUState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ namespace sgpmode {
2424
enum 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)

source/sgp_mode/hardware/RingBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*/
1515
template <typename T>
1616
class RingBuffer {

source/sgp_mode/hardware/SGPHardware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*/
2727
template<typename HW_SPEC_T>
2828
class SGPHardware {

source/sgp_mode/hardware/Stacks.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
namespace 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
*/
1516
template<typename T>
1617
class Stacks {

source/sgp_mode/tasks/TaskSet.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/
3232
template<typename INPUT_T, typename OUTPUT_T>
3333
class TaskSet {

0 commit comments

Comments
 (0)