libzypp  17.37.5
helix::detail::AutoXmlFree< Tp > Struct Template Reference

#include <zypp/misc/HelixHelpers.h>

Inheritance diagram for helix::detail::AutoXmlFree< Tp >:

Public Member Functions

 AutoXmlFree (Tp *ptr_r=nullptr)
 
- Public Member Functions inherited from zypp::AutoDispose< Tp *>
 AutoDispose ()
 Default Ctor using default constructed value and no dispose function. More...
 
 AutoDispose (Dispose dispose_r)
 Ctor taking dispose function and using default constructed value. More...
 
 AutoDispose (value_type value_r)
 Ctor taking value and no dispose function. More...
 
 AutoDispose (value_type value_r, 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_type * operator-> () const
 Pointer to the Tp object (asserted to be != NULL). More...
 
void reset ()
 Reset to default Ctor values. More...
 
void swap (AutoDispose &rhs) noexcept
 Exchange the contents of two AutoDispose objects. More...
 
bool unique () const
 Returns true if this is the only AutoDispose instance managing the current data object. More...
 
const Dispose & getDispose () 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< Tp *>
using param_type = typename boost::call_traits< Tp * >::param_type
 
using reference = typename boost::call_traits< Tp * >::reference
 
using const_reference = typename boost::call_traits< Tp * >::const_reference
 
using value_type = Tp *
 
using result_type = typename boost::call_traits< Tp * >::value_type
 
using dispose_param_type = std::conditional_t< std::is_pointer_v< Tp * >||std::is_integral_v< Tp * >, Tp * const, reference >
 
using Dispose = function< void(dispose_param_type)>
 Dispose function signatue. More...
 

Detailed Description

template<typename Tp>
struct helix::detail::AutoXmlFree< Tp >

Definition at line 32 of file HelixHelpers.h.

Constructor & Destructor Documentation

◆ AutoXmlFree()

template<typename Tp>
helix::detail::AutoXmlFree< Tp >::AutoXmlFree ( Tp *  ptr_r = nullptr)
inline

Definition at line 34 of file HelixHelpers.h.


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