|
Evoplex
0.2.1
|
This class is used to generate a set of Attributes using different functions for each attribute. More...
#include <attrsgenerator.h>
Classes | |
| struct | AttrCmd |
| The attribute's command struct. More... | |
Public Member Functions | |
| AGDiffFunctions (const AttributesScope &attrsScope, const int size, const std::vector< AttrCmd > &attrCmds) | |
| Constructor. More... | |
| SetOfAttributes | create (int size=-1, std::function< void(int)> progress=[](int){}) override |
| Creates a set of attributes. More... | |
| const std::vector< AttrCmd > & | attrCmds () const |
| Gets the attribute's commands. | |
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 different functions for each attribute.
|
explicit |
Constructor.
| attrsScope | The attribute's scope. |
| size | The size of the generated set of attributes. |
| attrCmds | The attribute's commands. |
|
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