Bitcoin Core 30.99.0
P2P Digital Currency
Classes | Public Member Functions | Protected Attributes | List of all members
btck::UniqueHandle< CType, DestroyFunc > Class Template Reference

#include <bitcoinkernel_wrapper.h>

Classes

struct  Deleter
 

Public Member Functions

 UniqueHandle (CType *ptr)
 
CType * get ()
 
const CType * get () const
 

Protected Attributes

std::unique_ptr< CType, Deleterm_ptr
 

Detailed Description

template<typename CType, void(*)(CType *) DestroyFunc>
class btck::UniqueHandle< CType, DestroyFunc >

Definition at line 352 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ UniqueHandle()

template<typename CType , void(*)(CType *) DestroyFunc>
btck::UniqueHandle< CType, DestroyFunc >::UniqueHandle ( CType *  ptr)
inlineexplicit

Definition at line 364 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ get() [1/2]

template<typename CType , void(*)(CType *) DestroyFunc>
CType * btck::UniqueHandle< CType, DestroyFunc >::get ( )
inline

Definition at line 366 of file bitcoinkernel_wrapper.h.

◆ get() [2/2]

template<typename CType , void(*)(CType *) DestroyFunc>
const CType * btck::UniqueHandle< CType, DestroyFunc >::get ( ) const
inline

Definition at line 367 of file bitcoinkernel_wrapper.h.

Member Data Documentation

◆ m_ptr

template<typename CType , void(*)(CType *) DestroyFunc>
std::unique_ptr<CType, Deleter> btck::UniqueHandle< CType, DestroyFunc >::m_ptr
protected

Definition at line 361 of file bitcoinkernel_wrapper.h.


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