The cached implementation for finding parameters with the correct ID.
More...
#include <ParameterCache.h>
|
QSharedPointer< const Component > | getComponent () const noexcept |
|
virtual QSharedPointer< Parameter > | searchParameter (QStringView parameterId) const |
|
The cached implementation for finding parameters with the correct ID.
Definition at line 29 of file ParameterCache.h.
◆ ParameterCache() [1/2]
ParameterCache::ParameterCache |
( |
QSharedPointer< const Component > | component | ) |
|
Constructor.
- Parameters
-
[in] | component | The component which parameters are being searched for. |
◆ ~ParameterCache()
ParameterCache::~ParameterCache |
( |
| ) |
|
|
overridedefault |
◆ ParameterCache() [2/2]
◆ getAllParameterIds()
QStringList ParameterCache::getAllParameterIds |
( |
| ) |
const |
|
finalvirtual |
Gets all of the ids of components parameters.
- Returns
- A list containing all of the ids.
Reimplemented from ComponentParameterFinder.
◆ getNumberOfParameters()
int ParameterCache::getNumberOfParameters |
( |
| ) |
const |
|
finalvirtual |
Gets the number of parameters in the component.
- Returns
- The number of parameters in the component.
Reimplemented from ComponentParameterFinder.
◆ getParameterWithID()
QSharedPointer< Parameter > ParameterCache::getParameterWithID |
( |
QStringView | parameterId | ) |
const |
|
finalvirtual |
Get the parameter corresponding the id.
- Parameters
-
[in] | parameterId | The id of the parameter being searched for. |
Reimplemented from ComponentParameterFinder.
◆ hasId()
bool ParameterCache::hasId |
( |
QStringView | id | ) |
const |
|
finalvirtual |
Checks if a parameter with the given id exists.
- Parameters
-
[in] | id | The id to search for. |
- Returns
- True, if the parameter with the given id exists, otherwise false.
Reimplemented from ComponentParameterFinder.
◆ operator=()
◆ registerParameterModel()
void ParameterCache::registerParameterModel |
( |
QAbstractItemModel const * | model | ) |
|
|
finalvirtual |
Registers a parameter model that can modify parameters for the finder.
- Parameters
-
[in] | model | The model to register. |
Reimplemented from ComponentParameterFinder.
◆ setComponent()
void ParameterCache::setComponent |
( |
QSharedPointer< Component const > | component | ) |
|
|
finalvirtual |
Set a new component for the parameter finder.
- Parameters
-
[in] | component | The new component. |
Reimplemented from ComponentParameterFinder.
The documentation for this class was generated from the following file: