OpenCV453
公開メンバ関数 | フレンド | 全メンバ一覧
cv::dnn::Dict クラス

This class implements name-value dictionary, values are instances of DictValue. [詳解]

#include <dict.hpp>

cv::dnn::LayerParamsに継承されています。

公開メンバ関数

bool has (const String &key) const
 Checks a presence of the key in the dictionary.
 
DictValueptr (const String &key)
 If the key in the dictionary then returns pointer to its value, else returns NULL.
 
const DictValueptr (const String &key) const
 
const DictValueget (const String &key) const
 If the key in the dictionary then returns its value, else an error will be generated.
 
template<typename T >
get (const String &key) const
 
template<typename T >
get (const String &key, const T &defaultValue) const
 If the key in the dictionary then returns its value, else returns defaultValue.
 
template<typename T >
const T & set (const String &key, const T &value)
 Sets new value for the key, or adds new key-value pair into the dictionary.
 
void erase (const String &key)
 Erase key from the dictionary.
 
std::map< String, DictValue >::const_iterator begin () const
 
std::map< String, DictValue >::const_iterator end () const
 

フレンド

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

詳解

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

関数詳解

◆ get()

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

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

◆ ptr()

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

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。


このクラス詳解は次のファイルから抽出されました: