Evoplex  0.2.1
Public Member Functions | List of all members
evoplex::AttrsGeneratorInterface Class Referenceabstract

A common interface for the attributes' generators classes. More...

#include <attrsgenerator.h>

Inheritance diagram for evoplex::AttrsGeneratorInterface:
evoplex::AttrsGenerator evoplex::AGDiffFunctions evoplex::AGSameFuncForAll

Public Member Functions

virtual ~AttrsGeneratorInterface ()=default
 Destructor.
 
virtual SetOfAttributes create (int size=-1, std::function< void(int)> progress=[](int){})=0
 Creates a set of attributes. More...
 

Detailed Description

A common interface for the attributes' generators classes.

See also
AttrsGenerator, AGSameFuncForAll, AGDiffFunctions

Member Function Documentation

◆ create()

virtual SetOfAttributes evoplex::AttrsGeneratorInterface::create ( int  size = -1,
std::function< void(int)>  progress = [](int){} 
)
pure virtual

Creates a set of attributes.

Parameters
sizeThe number of Atributes objects.
progressA callback std::function that can be used to track the progress, which is an integer from 0 to size.
Returns
A vector of Attributes.

Implemented in evoplex::AGDiffFunctions, and evoplex::AGSameFuncForAll.


The documentation for this class was generated from the following file: