OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::CF::Wrap< T > Class Template Reference

#include <cf.hpp>

Public Member Functions

 Wrap ()
 
 Wrap (T obj, const Rule rule=CREATE)
 
 Wrap (const Wrap &other)
 
Wrapoperator= (const Wrap &other)
 
 Wrap (Wrap &&other) noexcept
 
Wrapoperator= (Wrap &&other) noexcept
 
void swap (Wrap &other)
 
void reset (T obj=nullptr, const Rule rule=CREATE)
 
bool defined () const
 
 operator bool () const noexcept
 
operator() () const
 
CFTypeRef generic () const
 
release ()
 
CFTypeRef generic_release ()
 
T * mod_ref ()
 
void show () const
 
virtual ~Wrap ()
 

Static Public Member Functions

static T cast (CFTypeRef obj)
 
static Wrap from_generic (CFTypeRef obj, const Rule rule=CREATE)
 

Private Member Functions

Wrapoperator= (T obj)=delete
 

Private Attributes

obj_
 

Detailed Description

template<typename T>
class openvpn::CF::Wrap< T >

Definition at line 61 of file cf.hpp.

Constructor & Destructor Documentation

◆ Wrap() [1/4]

template<typename T >
openvpn::CF::Wrap< T >::Wrap ( )
inline

Definition at line 64 of file cf.hpp.

Here is the caller graph for this function:

◆ Wrap() [2/4]

template<typename T >
openvpn::CF::Wrap< T >::Wrap ( obj,
const Rule  rule = CREATE 
)
inlineexplicit

Definition at line 69 of file cf.hpp.

◆ Wrap() [3/4]

template<typename T >
openvpn::CF::Wrap< T >::Wrap ( const Wrap< T > &  other)
inline

Definition at line 76 of file cf.hpp.

◆ Wrap() [4/4]

template<typename T >
openvpn::CF::Wrap< T >::Wrap ( Wrap< T > &&  other)
inlinenoexcept

Definition at line 93 of file cf.hpp.

◆ ~Wrap()

template<typename T >
virtual openvpn::CF::Wrap< T >::~Wrap ( )
inlinevirtual

Definition at line 186 of file cf.hpp.

Member Function Documentation

◆ cast()

template<typename T >
static T openvpn::CF::Wrap< T >::cast ( CFTypeRef  obj)
inlinestatic

Definition at line 142 of file cf.hpp.

Here is the caller graph for this function:

◆ defined()

template<typename T >
bool openvpn::CF::Wrap< T >::defined ( ) const
inline

Definition at line 122 of file cf.hpp.

Here is the caller graph for this function:

◆ from_generic()

template<typename T >
static Wrap openvpn::CF::Wrap< T >::from_generic ( CFTypeRef  obj,
const Rule  rule = CREATE 
)
inlinestatic

Definition at line 147 of file cf.hpp.

◆ generic()

template<typename T >
CFTypeRef openvpn::CF::Wrap< T >::generic ( ) const
inline

Definition at line 137 of file cf.hpp.

◆ generic_release()

template<typename T >
CFTypeRef openvpn::CF::Wrap< T >::generic_release ( )
inline

Definition at line 159 of file cf.hpp.

◆ mod_ref()

template<typename T >
T * openvpn::CF::Wrap< T >::mod_ref ( )
inline

Definition at line 168 of file cf.hpp.

Here is the caller graph for this function:

◆ operator bool()

template<typename T >
openvpn::CF::Wrap< T >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 127 of file cf.hpp.

◆ operator()()

template<typename T >
T openvpn::CF::Wrap< T >::operator() ( ) const
inline

Definition at line 132 of file cf.hpp.

◆ operator=() [1/3]

template<typename T >
Wrap & openvpn::CF::Wrap< T >::operator= ( const Wrap< T > &  other)
inline

Definition at line 83 of file cf.hpp.

◆ operator=() [2/3]

template<typename T >
Wrap & openvpn::CF::Wrap< T >::operator= ( obj)
privatedelete

◆ operator=() [3/3]

template<typename T >
Wrap & openvpn::CF::Wrap< T >::operator= ( Wrap< T > &&  other)
inlinenoexcept

Definition at line 99 of file cf.hpp.

◆ release()

template<typename T >
T openvpn::CF::Wrap< T >::release ( )
inline

Definition at line 152 of file cf.hpp.

◆ reset()

template<typename T >
void openvpn::CF::Wrap< T >::reset ( obj = nullptr,
const Rule  rule = CREATE 
)
inline

Definition at line 113 of file cf.hpp.

◆ show()

template<typename T >
void openvpn::CF::Wrap< T >::show ( ) const
inline

Definition at line 178 of file cf.hpp.

◆ swap()

template<typename T >
void openvpn::CF::Wrap< T >::swap ( Wrap< T > &  other)
inline

Definition at line 108 of file cf.hpp.

Member Data Documentation

◆ obj_

template<typename T >
T openvpn::CF::Wrap< T >::obj_
private

Definition at line 195 of file cf.hpp.


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