libzypp  17.16.0
zypp::AutoFREE< void > Struct Template Reference

#include <AutoDispose.h>

Inheritance diagram for zypp::AutoFREE< void >:

Public Member Functions

 AutoFREE (void *ptr_r=nullptr)
 
- Public Member Functions inherited from zypp::AutoDispose< void * >
 AutoDispose ()
 Default Ctor using default constructed value and no dispose function. More...
 
 AutoDispose (const Dispose &dispose_r)
 Ctor taking dispose function and using default constructed value. More...
 
 AutoDispose (param_type value_r)
 Ctor taking value and no dispose function. More...
 
 AutoDispose (param_type value_r, const Dispose &dispose_r)
 Ctor taking value and dispose function. More...
 
 operator reference () const
 Provide implicit conversion to Tp&. More...
 
reference value () const
 Reference to the Tp object. More...
 
reference operator * () const
 Reference to the Tp object. More...
 
value_typeoperator-> () const
 Pointer to the Tp object (asserted to be != NULL). More...
 
void reset ()
 Reset to default Ctor values. More...
 
void swap (AutoDispose &rhs)
 Exchange the contents of two AutoDispose objects. More...
 
const DisposegetDispose () const
 Return the current dispose function. More...
 
void setDispose (const Dispose &dispose_r)
 Set a new dispose function. More...
 
void resetDispose ()
 Set no dispose function. More...
 
void swapDispose (Dispose &dispose_r)
 Exchange the dispose function. More...
 

Additional Inherited Members

- Public Types inherited from zypp::AutoDispose< void * >
typedef boost::call_traits< void * >::param_type param_type
 
typedef boost::call_traits< void * >::reference reference
 
typedef boost::call_traits< void * >::const_reference const_reference
 
typedef void * value_type
 
typedef boost::call_traits< void * >::value_type result_type
 
typedef function< void(param_type)> Dispose
 Dispose function signatue. More...
 

Detailed Description

template<>
struct zypp::AutoFREE< void >

Definition at line 232 of file AutoDispose.h.

Constructor & Destructor Documentation

◆ AutoFREE()

zypp::AutoFREE< void >::AutoFREE ( void *  ptr_r = nullptr)
inline

Definition at line 234 of file AutoDispose.h.


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