This class is used to generate a set of Attributes using the same function for all attributes.
More...
#include <attrsgenerator.h>
This class is used to generate a set of Attributes using the same function for all attributes.
- See also
- AttrsGenerator, AGSameFuncForAll
◆ AGSameFuncForAll()
evoplex::AGSameFuncForAll::AGSameFuncForAll |
( |
const AttributesScope & |
attrsScope, |
|
|
const int |
size, |
|
|
const Function & |
func, |
|
|
const Value & |
funcInput |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
attrsScope | The attribute's scope. |
size | The size of the generated set of attributes. |
func | The attributes' function. |
funcInput | The function's input. |
- See also
- AttrsGenerator::parse
◆ create()
SetOfAttributes evoplex::AGSameFuncForAll::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: