Class cv::dnn::Dict#

This class implements name-value dictionary, values are instances of DictValue.

Collaboration diagram for cv::dnn::Dict:

Friends#

Return

Name

Description

std::ostream &

operator<<(std::ostream &stream, const Dict &dict)

Detailed Description#

This class implements name-value dictionary, values are instances of DictValue.

Member Typedef Documentation#

_Dict#

typedef std::map< String, DictValue > cv::dnn::Dict::_Dict

Member Function Documentation#

begin()#

std::map< String, DictValue >::const_iterator cv::dnn::Dict::begin()

end()#

std::map< String, DictValue >::const_iterator cv::dnn::Dict::end()

erase()#

void cv::dnn::Dict::erase(const String & key)

Erase key from the dictionary.

get()#

const DictValue & cv::dnn::Dict::get(const String & key)

If the key in the dictionary then returns its value, else an error will be generated.

get()#

template<typename T>
T cv::dnn::Dict::get(const String & key)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

get()#

template<typename T>
T cv::dnn::Dict::get(
const String & key,
const T & defaultValue )

If the key in the dictionary then returns its value, else returns defaultValue.

getVector()#

template<typename T>
std::vector< T > cv::dnn::Dict::getVector(const String & key)

If the key in the dictionary then returns its value, else returns empty vector.

has()#

bool cv::dnn::Dict::has(const String & key)

Checks a presence of the key in the dictionary.

ptr()#

DictValue * cv::dnn::Dict::ptr(const String & key)

If the key in the dictionary then returns pointer to its value, else returns NULL.

ptr()#

const DictValue * cv::dnn::Dict::ptr(const String & key)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

set()#

template<typename T>
const T & cv::dnn::Dict::set(
const String & key,
const T & value )

Sets new value for the key, or adds new key-value pair into the dictionary.

Member Data Documentation#

dict#

_Dict cv::dnn::Dict::dict

Source file#

The documentation for this class was generated from the following file: