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

#include <bitcoinkernel_wrapper.h>

Public Member Functions

 Handle (CType *ptr)
 
 Handle (const Handle &other)
 
Handleoperator= (const Handle &other)
 
 Handle (Handle &&other) noexcept
 
Handleoperator= (Handle &&other) noexcept
 
template<typename ViewType >
requires std::derived_from<ViewType, View<CType>>
 Handle (const ViewType &view)
 
 ~Handle ()
 
CType * get ()
 
const CType * get () const
 

Protected Attributes

CType * m_ptr
 

Detailed Description

template<typename CType, CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
class btck::Handle< CType, CopyFunc, DestroyFunc >

Definition at line 308 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Handle() [1/4]

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
btck::Handle< CType, CopyFunc, DestroyFunc >::Handle ( CType *  ptr)
inlineexplicit

Definition at line 314 of file bitcoinkernel_wrapper.h.

◆ Handle() [2/4]

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
btck::Handle< CType, CopyFunc, DestroyFunc >::Handle ( const Handle< CType, CopyFunc, DestroyFunc > &  other)
inline

Definition at line 317 of file bitcoinkernel_wrapper.h.

◆ Handle() [3/4]

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
btck::Handle< CType, CopyFunc, DestroyFunc >::Handle ( Handle< CType, CopyFunc, DestroyFunc > &&  other)
inlinenoexcept

Definition at line 329 of file bitcoinkernel_wrapper.h.

◆ Handle() [4/4]

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
template<typename ViewType >
requires std::derived_from<ViewType, View<CType>>
btck::Handle< CType, CopyFunc, DestroyFunc >::Handle ( const ViewType &  view)
inline

Definition at line 339 of file bitcoinkernel_wrapper.h.

◆ ~Handle()

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
btck::Handle< CType, CopyFunc, DestroyFunc >::~Handle ( )
inline

Definition at line 344 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ get() [1/2]

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

Definition at line 346 of file bitcoinkernel_wrapper.h.

Here is the caller graph for this function:

◆ get() [2/2]

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

Definition at line 347 of file bitcoinkernel_wrapper.h.

◆ operator=() [1/2]

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
Handle & btck::Handle< CType, CopyFunc, DestroyFunc >::operator= ( const Handle< CType, CopyFunc, DestroyFunc > &  other)
inline

Definition at line 319 of file bitcoinkernel_wrapper.h.

◆ operator=() [2/2]

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
Handle & btck::Handle< CType, CopyFunc, DestroyFunc >::operator= ( Handle< CType, CopyFunc, DestroyFunc > &&  other)
inlinenoexcept

Definition at line 330 of file bitcoinkernel_wrapper.h.

Member Data Documentation

◆ m_ptr

template<typename CType , CType *(*)(const CType *) CopyFunc, void(*)(CType *) DestroyFunc>
CType* btck::Handle< CType, CopyFunc, DestroyFunc >::m_ptr
protected

Definition at line 311 of file bitcoinkernel_wrapper.h.


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