struct ov::device::Properties

Overview

Type for property to pass set of properties to specified device. More…

#include <properties.hpp>

struct Properties
{
    // methods

    std::pair<std::string, Any> operator () (
        const std::string& device_name,
        const AnyMap& config
        ) const;

    template <typename... Properties>
    util::EnableIfAllStringAny<std::pair<std::string, Any>, Properties...> operator () (
        const std::string& device_name,
        Properties&&... configs
        ) const;
};

Detailed Documentation

Type for property to pass set of properties to specified device.

Methods

std::pair<std::string, Any> operator () (
    const std::string& device_name,
    const AnyMap& config
    ) const

Constructs property.

Parameters:

device_name

device plugin alias

config

set of property values with names

Returns:

Pair of string key representation and type erased property value.

template <typename... Properties>
util::EnableIfAllStringAny<std::pair<std::string, Any>, Properties...> operator () (
    const std::string& device_name,
    Properties&&... configs
    ) const

Constructs property.

Parameters:

Properties

Should be the pack of std::pair<std::string, ov::Any> types

device_name

device plugin alias

configs

Optional pack of pairs: (config parameter name, config parameter value)

Returns:

Pair of string key representation and type erased property value.