![]() |
IDS peak AFL v2.0.1
|
Interface for features that have a list of valid values. More...
#include <peak_afl/pipeline/modules/controllers/features/peak_afl_ifeature.hpp>
Public Member Functions | |
| virtual std::vector< T > | GetList () const =0 |
| Gets the list of valid values for this feature. | |
| Public Member Functions inherited from IFeature< T > | |
| virtual | ~IFeature ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual void | Set (const T &value)=0 |
| Sets the feature value. | |
| virtual T | Get () const =0 |
| Gets the current feature value. | |
| Public Member Functions inherited from ISerializable | |
| virtual void | Serialize (IArchive &archive) const =0 |
| Serializes the current object into the provided archive. | |
| virtual void | Deserialize (const IArchive &archive)=0 |
| Deserializes the object's state from the provided archive. | |
Interface for features that have a list of valid values.
The IListFeature template class extends IFeature to provide additional functionality for features that have a discrete set of valid values. This is useful for enumerated parameters like algorithms or modes.
Examples of list features include:
| T | The enumerated type that this list feature manages |
|
pure virtual |
Gets the list of valid values for this feature.
Retrieves all valid values that this feature can be set to. This information can be used for input validation and to populate user interface controls like dropdown lists.
| Implementation-specific | exceptions may be thrown if the underlying system is in an invalid state. |
Implemented in SearchAlgorithm, and SharpnessAlgorithm.