OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::Allocator< _Tp > 類模板參考

#include <opencv2/core/cvstd.hpp>

cv::Allocator< _Tp > 的協作圖

類  rebind
 

公共型別

typedef const value_typeconst_pointer
 
typedef const value_typeconst_reference
 
typedef ptrdiff_t difference_type
 
typedef value_typepointer
 
typedef value_typereference
 
typedef size_t size_type
 
typedef _Tp value_type
 

公共成員函式

 分配器 ()
 
 Allocator (Allocator const &)
 
template<typename U >
 Allocator (Allocator< U > const &)
 
 ~Allocator ()
 
const_pointer address (const_reference r)
 
pointer address (reference r)
 
pointer allocate (size_type count, const void *=0)
 
void construct (pointer p, const _Tp &v)
 
void deallocate (pointer p, size_type)
 
void destroy (pointer p)
 
size_type max_size () const
 

詳細描述

template<typename _Tp>
class cv::Allocator< _Tp >

符合 STL 的記憶體Allocator基於cv::fastMalloc()cv::fastFree()

成員 Typedef 文件

◆ const_pointer

template<typename _Tp >
const value_type* cv::Allocator< _Tp >::const_pointer

◆ const_reference

template<typename _Tp >
const value_type& cv::Allocator< _Tp >::const_reference

◆ difference_type

template<typename _Tp >
ptrdiff_t cv::Allocator< _Tp >::difference_type

◆ pointer

template<typename _Tp >
value_type* cv::Allocator< _Tp >::pointer

◆ reference

template<typename _Tp >
value_type& cv::Allocator< _Tp >::reference

◆ size_type

template<typename _Tp >
size_t cv::Allocator< _Tp >::size_type

◆ value_type

template<typename _Tp >
_Tp cv::Allocator< _Tp >::value_type

建構函式 & 解構函式文件

◆ Allocator() [1/3]

template<typename _Tp >
cv::Allocator< _Tp >::Allocator ( )
inlineexplicit

◆ ~Allocator()

template<typename _Tp >
cv::Allocator< _Tp >::~Allocator ( )
inline

◆ Allocator() [2/3]

template<typename _Tp >
cv::Allocator< _Tp >::Allocator ( Allocator< _Tp > const & )
inlineexplicit

◆ Allocator() [3/3]

template<typename _Tp >
template<typename U >
cv::Allocator< _Tp >::Allocator ( Allocator< U > const & )
inlineexplicit

成員函式文件

◆ address() [1/2]

template<typename _Tp >
const_pointer cv::Allocator< _Tp >::address ( const_reference r)
inline

◆ address() [2/2]

template<typename _Tp >
pointer cv::Allocator< _Tp >::address ( reference r)
inline

◆ allocate()

template<typename _Tp >
pointer cv::Allocator< _Tp >::allocate ( size_type count,
const void * = 0 )
inline
此函式的呼叫圖如下

◆ construct()

template<typename _Tp >
void cv::Allocator< _Tp >::construct ( pointer p,
const _Tp & v )
inline

◆ deallocate()

template<typename _Tp >
void cv::Allocator< _Tp >::deallocate ( pointer p,
size_type  )
inline
此函式的呼叫圖如下

◆ destroy()

template<typename _Tp >
void cv::Allocator< _Tp >::destroy ( pointer p)
inline

◆ max_size()

template<typename _Tp >
size_type cv::Allocator< _Tp >::max_size ( ) const
inline
此函式的呼叫圖如下

此類文件從以下檔案生成