This class represents an object to work with different parameters. More...
#include <ie_parameter.hpp>
Public Member Functions | |
Parameter ()=default | |
Default constructor. | |
Parameter (Parameter &¶meter) noexcept | |
Move constructor. More... | |
Parameter (const std::shared_ptr< ngraph::Variant > &var) | |
Creates parameter from variant. This method creates empty parameter if variant doesn't contain Parameter. More... | |
Parameter (std::shared_ptr< ngraph::Variant > &var) | |
Creates parameter from variant. This method creates empty parameter if variant doesn't contain Parameter. More... | |
Parameter (const Parameter ¶meter) | |
Copy constructor. More... | |
template<class T , typename = typename std::enable_if<!std::is_same<typename std::decay<T>::type, Parameter>::value>::type> | |
Parameter (T &¶meter) | |
Constructor creates parameter with object. More... | |
Parameter (const char *str) | |
Constructor creates string parameter from char *. More... | |
virtual | ~Parameter () |
Destructor. | |
Parameter & | operator= (const Parameter ¶meter) |
void | clear () |
bool | empty () const noexcept |
template<class T > | |
bool | is () const |
template<typename T > | |
T && | as () && |
template<class T > | |
T & | as () & |
template<class T > | |
const T & | as () const & |
template<class T > | |
operator T&& () && | |
template<class T > | |
operator T& () & | |
template<class T > | |
operator const T & () const & | |
std::shared_ptr< ngraph::Variant > | asVariant () const |
Converts parameter to shared pointer on ngraph::Variant. More... | |
operator std::shared_ptr< ngraph::Variant > () const | |
Casts to shared pointer on ngraph::Variant. More... | |
template<class T > | |
operator T& () const & | |
bool | operator== (const Parameter &rhs) const |
The comparison operator for the Parameter. More... | |
bool | operator!= (const Parameter &rhs) const |
The comparison operator for the Parameter. More... | |
This class represents an object to work with different parameters.
|
inlinenoexcept |
Move constructor.
parameter | Parameter object |
InferenceEngine::Parameter::Parameter | ( | const std::shared_ptr< ngraph::Variant > & | var | ) |
Creates parameter from variant. This method creates empty parameter if variant doesn't contain Parameter.
var | ngraph variant |
InferenceEngine::Parameter::Parameter | ( | std::shared_ptr< ngraph::Variant > & | var | ) |
Creates parameter from variant. This method creates empty parameter if variant doesn't contain Parameter.
var | ngraph variant |
|
inline |
Copy constructor.
parameter | Parameter object |
|
inline |
Constructor creates parameter with object.
T | Parameter type |
U | Identity type-transformation |
parameter | object |
|
inline |
Constructor creates string parameter from char *.
str | char array |
|
inline |
Dynamic cast to specified type
T | type |
|
inline |
Dynamic cast to specified type
T | type |
|
inline |
Dynamic cast to specified type
T | type |
std::shared_ptr<ngraph::Variant> InferenceEngine::Parameter::asVariant | ( | ) | const |
Converts parameter to shared pointer on ngraph::Variant.
|
inline |
Remove a value from parameter
|
inlinenoexcept |
Checks that parameter contains a value
|
inline |
Checks the type of value
T | Type of value |
|
inline |
Dynamic cast to specified type
T | type |
|
inline |
Casts to shared pointer on ngraph::Variant.
|
inline |
Dynamic cast to specified type
T | type |
|
inline |
Dynamic cast to specified type
T | type |
|
inline |
Dynamic cast to specified type
T | type |
|
inline |
The comparison operator for the Parameter.
rhs | object to compare |
|
inline |
The comparison operator for the Parameter.
rhs | object to compare |