This class is used to generate a set of Attributes using different functions for each attribute.
More...
#include <attrsgenerator.h>
This class is used to generate a set of Attributes using different functions for each attribute.
- See also
- AttrsGenerator, AGDiffFunctions
◆ AGDiffFunctions()
evoplex::AGDiffFunctions::AGDiffFunctions |
( |
const AttributesScope & |
attrsScope, |
|
|
const int |
size, |
|
|
const std::vector< AttrCmd > & |
attrCmds |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
attrsScope | The attribute's scope. |
size | The size of the generated set of attributes. |
attrCmds | The attribute's commands. |
- See also
- AttrsGenerator::parse
◆ create()
SetOfAttributes evoplex::AGDiffFunctions::create |
( |
int |
size = -1 , |
|
|
std::function< void(int)> |
progress = [](int){} |
|
) |
| |
|
overridevirtual |
Creates a set of attributes.
- Parameters
-
size | The number of Atributes objects. |
progress | A callback std::function that can be used to track the progress, which is an integer from 0 to size . |
- Returns
- A vector of Attributes.
Implements evoplex::AttrsGeneratorInterface.
The documentation for this class was generated from the following file: