#include <config.hpp>
template<typename ConfigType, typename CustomConfigType>
edge::qnn::Config class

A class template for managing QNN backend configurations.

Template parameters
ConfigType The type of the configuration
CustomConfigType The type of the custom configuration

This class template allows for the management of configurations and custom configurations. It provides methods for creating new configurations and custom configurations, as well as retrieving pointers to QNN API compatible configurations arrays.

Constructors, destructors, conversion operators

Config(ConfigType defaultConfig, CustomConfigType defaultCustomConfig)
Constructor for Config class.

Public functions

auto createConfig() -> auto &
Creates a new configuration.
auto createCustomConfig() -> auto &
Creates a new custom configuration.
auto getPtr() -> const ConfigType **
Retrieves pointers to the configurations.

Function documentation

template<typename ConfigType, typename CustomConfigType>
edge::qnn::Config<ConfigType, CustomConfigType>::Config(ConfigType defaultConfig, CustomConfigType defaultCustomConfig)

Constructor for Config class.

Parameters
defaultConfig The default configuration
defaultCustomConfig The default custom configuration

Initializes the default configuration and default custom configuration.

template<typename ConfigType, typename CustomConfigType>
auto edge::qnn::Config<ConfigType, CustomConfigType>::createConfig() -> auto &

Creates a new configuration.

Returns A reference to the newly created configuration

Creates a new configuration using the default configuration and adds it to the list of configurations.

template<typename ConfigType, typename CustomConfigType>
auto edge::qnn::Config<ConfigType, CustomConfigType>::createCustomConfig() -> auto &

Creates a new custom configuration.

Returns A reference to the newly created custom configuration

Creates a new custom configuration using the default custom configuration and adds it to the list of custom configurations. The returned custom configuration needs to be assigned to a corresponding configuration.

template<typename ConfigType, typename CustomConfigType>
auto edge::qnn::Config<ConfigType, CustomConfigType>::getPtr() -> const ConfigType **

Retrieves pointers to the configurations.

Returns An array of pointers to the configurations

Retrieves a null terminated array of pointers to all the configurations.