|
Evoplex
0.2.1
|
This class is used to generate a set of Attributes using the same function for all attributes. More...
#include <attrsgenerator.h>
Public Member Functions | |
| AGSameFuncForAll (const AttributesScope &attrsScope, const int size, const Function &func, const Value &funcInput) | |
| Constructor. More... | |
| SetOfAttributes | create (int size=-1, std::function< void(int)> progress=[](int){}) override |
| Creates a set of attributes. More... | |
| Function | function () const |
| Gets the function used by this attributes generator. | |
| const Value & | functionInput () const |
| Gets the input of the function used by this attributes generator. | |
Public Member Functions inherited from evoplex::AttrsGenerator | |
| virtual | ~AttrsGenerator ()=default |
| Destructor. | |
| AttributesScope | attrsScope () const |
| Gets the attribute's scope. | |
| const QString & | command () |
| Gets the source command for the AttrsGenerator object. | |
| int | size () const |
| Gets the size of the set of attributes. | |
Public Member Functions inherited from evoplex::AttrsGeneratorInterface | |
| virtual | ~AttrsGeneratorInterface ()=default |
| Destructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from evoplex::AttrsGenerator | |
| static AttrsGeneratorPtr | parse (const AttributesScope &attrsScope, const QString &cmd, QString &error) |
| Creates a AttrsGenerator object from a command. More... | |
| static Value | parseRandSeed (QString seedStr) |
| Parse a 'rand_seed' command. More... | |
Protected Member Functions inherited from evoplex::AttrsGenerator | |
| AttrsGenerator (const AttributesScope &attrsScope, const int size) | |
| Constructor. More... | |
Protected Attributes inherited from evoplex::AttrsGenerator | |
| const AttributesScope | m_attrsScope |
| const int | m_size |
| QString | m_command |
This class is used to generate a set of Attributes using the same function for all attributes.
|
explicit |
Constructor.
| attrsScope | The attribute's scope. |
| size | The size of the generated set of attributes. |
| func | The attributes' function. |
| funcInput | The function's input. |
|
overridevirtual |
Creates a set of attributes.
| 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. |
Implements evoplex::AttrsGeneratorInterface.
1.8.14