mexopencv  3.4.1
MEX interface for OpenCV library
Public Member Functions | List of all members
ConstMap< T, U > Class Template Reference

std::map wrapper with one-line initialization and lookup method. More...

#include <MxArray.hpp>

Public Member Functions

 ConstMap (const T &key, const U &val)
 Constructor with a single key-value pair. More...
 
ConstMap< T, U > & operator() (const T &key, const U &val)
 Consecutive insertion operator. More...
 
 operator std::map< T, U > () const
 Implicit converter to std::map. More...
 
const U & operator[] (const T &key) const
 Lookup operator; fail if not found. More...
 

Detailed Description

template<typename T, typename U>
class ConstMap< T, U >

std::map wrapper with one-line initialization and lookup method.

Initialization:

Lookup:

BorderType["Constant"] // => cv::BORDER_CONSTANT

Definition at line 927 of file MxArray.hpp.

Constructor & Destructor Documentation

◆ ConstMap()

template<typename T, typename U>
ConstMap< T, U >::ConstMap ( const T key,
const U &  val 
)
inline

Constructor with a single key-value pair.

Definition at line 931 of file MxArray.hpp.

Member Function Documentation

◆ operator std::map< T, U >()

template<typename T, typename U>
ConstMap< T, U >::operator std::map< T, U > ( ) const
inline

Implicit converter to std::map.

Definition at line 942 of file MxArray.hpp.

◆ operator()()

template<typename T, typename U>
ConstMap<T,U>& ConstMap< T, U >::operator() ( const T key,
const U &  val 
)
inline

Consecutive insertion operator.

Definition at line 936 of file MxArray.hpp.

◆ operator[]()

template<typename T, typename U>
const U& ConstMap< T, U >::operator[] ( const T key) const
inline

Lookup operator; fail if not found.

Definition at line 944 of file MxArray.hpp.


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