The implementation for finding parameters with the correct ID.
More...
#include <ComponentParameterFinder.h>
|
QSharedPointer< const Component > | getComponent () const noexcept |
|
virtual QSharedPointer< Parameter > | searchParameter (QStringView parameterId) const |
|
The implementation for finding parameters with the correct ID.
Definition at line 25 of file ComponentParameterFinder.h.
◆ ComponentParameterFinder() [1/2]
ComponentParameterFinder::ComponentParameterFinder |
( |
QSharedPointer< Component const > | component | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
[in] | component | The component which parameters are being searched for. |
◆ ComponentParameterFinder() [2/2]
◆ ~ComponentParameterFinder()
ComponentParameterFinder::~ComponentParameterFinder |
( |
| ) |
|
|
overridedefault |
◆ allAddressSpaceParameters()
QList< QSharedPointer< Parameter > > ComponentParameterFinder::allAddressSpaceParameters |
( |
| ) |
const |
Returns all the parameters in component address spaces.
◆ allBusInterfaceParameters()
QList< QSharedPointer< Parameter > > ComponentParameterFinder::allBusInterfaceParameters |
( |
| ) |
const |
Finds all the parameters in component bus interfaces.
- Returns
- The parameters in all bus interfaces.
◆ allCpuParameters()
QList< QSharedPointer< Parameter > > ComponentParameterFinder::allCpuParameters |
( |
| ) |
const |
Returns all the parameters in component cpus.
◆ allGeneratorParameters()
QList< QSharedPointer< Parameter > > ComponentParameterFinder::allGeneratorParameters |
( |
| ) |
const |
Returns all the parameters in component generators.
◆ allIndirectInterfacesParameters()
QList< QSharedPointer< Parameter > > ComponentParameterFinder::allIndirectInterfacesParameters |
( |
| ) |
const |
Get all the parameters in indirect interfaces.
- Returns
- The parameters in indirect interfaces.
◆ allRegisterParameters()
QList< QSharedPointer< Parameter > > ComponentParameterFinder::allRegisterParameters |
( |
| ) |
const |
Finds all the parameters in component registers.
- Returns
- The parameters in all registers.
◆ getAllParameterIds()
virtual QStringList ComponentParameterFinder::getAllParameterIds |
( |
| ) |
const |
|
overridevirtual |
◆ getComponent()
QSharedPointer< const Component > ComponentParameterFinder::getComponent |
( |
| ) |
const |
|
protectednoexcept |
Get the component.
- Returns
- The contained component.
◆ getNumberOfParameters()
virtual int ComponentParameterFinder::getNumberOfParameters |
( |
| ) |
const |
|
overridevirtual |
◆ getParameterWithID()
QSharedPointer< Parameter > ComponentParameterFinder::getParameterWithID |
( |
QStringView | parameterId | ) |
const |
|
overridevirtual |
Get the parameter with the given id.
- Parameters
-
[in] | parameterId | The id of the parameter being searched for. |
Implements ParameterFinder.
Reimplemented in ParameterCache.
◆ hasId()
bool ComponentParameterFinder::hasId |
( |
QStringView | id | ) |
const |
|
overridevirtual |
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.
Implements ParameterFinder.
Reimplemented in ParameterCache.
◆ nameForId()
QString ComponentParameterFinder::nameForId |
( |
QStringView | id | ) |
const |
|
overridevirtual |
Finds the name of the parameter with the given id.
- Parameters
-
[in] | id | The id to search for. |
- Returns
- The name of the parameter.
Implements ParameterFinder.
◆ operator=()
◆ registerParameterModel()
virtual void ComponentParameterFinder::registerParameterModel |
( |
QAbstractItemModel const * | model | ) |
|
|
overridevirtual |
Registers a parameter model that can modify parameters for the finder.
- Parameters
-
[in] | model | The model to register. |
Implements ParameterFinder.
Reimplemented in ParameterCache.
◆ searchParameter()
virtual QSharedPointer< Parameter > ComponentParameterFinder::searchParameter |
( |
QStringView | parameterId | ) |
const |
|
protectedvirtual |
Returns a parameter corresponding given id, if any exists.
◆ setComponent()
virtual void ComponentParameterFinder::setComponent |
( |
QSharedPointer< Component const > | component | ) |
|
|
virtual |
Set a new component for the parameter finder.
- Parameters
-
[in] | component | The new component. |
Reimplemented in ParameterCache.
◆ valueForId()
QString ComponentParameterFinder::valueForId |
( |
QStringView | id | ) |
const |
|
overridevirtual |
Finds the value of the parameter with the given id.
- Parameters
-
[in] | id | The id of the parameter to search for. |
- Returns
- The value of the parameter.
Implements ParameterFinder.
The documentation for this class was generated from the following file: