This class handles all the options passed as arguments to Brain. It does so by using an enum of all options accepted by Brain and an integer which stores by bitwise comparation the values of options used at the moment of execution.
More...
#include <ArgsOptions.h>
This class handles all the options passed as arguments to Brain. It does so by using an enum of all options accepted by Brain and an integer which stores by bitwise comparation the values of options used at the moment of execution.
void ArgsOptions::add_option |
( |
BrainOption |
option | ) |
|
Add an option to be used by Brain, it does a bitwise OR on the value to add it to an integer.
- Parameters
-
option | The option to be added in. |
int ArgsOptions::get_cells_size |
( |
| ) |
|
get_cells_size
- Returns
- An integer corresponding with the size of the Brain cells known as the Brain memory.
BrainOption ArgsOptions::get_optimization |
( |
| ) |
|
Returns the optimization level to compile Brain files.
- Returns
- A BrainOption representing the level of optimization.
bool ArgsOptions::has_option |
( |
BrainOption |
option | ) |
|
Verifies and returns true if an option is present (being used) at the moment of execution, otherwise it returns false.
- Parameters
-
option | The option to be tested against. |
void ArgsOptions::set_cells_size |
( |
int |
cells_size | ) |
|
set_cells_size Sets the size of Brain's cells.
- Parameters
-
cells_size | An integer representing the size of the cells to be set. |
The documentation for this class was generated from the following files: