libzypp 17.31.23
zypp::AutoFILE Class Reference

AutoDispose<FILE*> calling ::fclose More...

#include <AutoDispose.h>

Inheritance diagram for zypp::AutoFILE:

Public Member Functions

 AutoFILE (FILE *file_r=nullptr)
- Public Member Functions inherited from zypp::AutoDispose< FILE * >
 AutoDispose ()
 Default Ctor using default constructed value and no dispose function.
 AutoDispose (const Dispose &dispose_r)
 Ctor taking dispose function and using default constructed value.
 AutoDispose (const value_type &value_r)
 Ctor taking value and no dispose function.
 AutoDispose (const value_type &value_r, const Dispose &dispose_r)
 Ctor taking value and dispose function.
 AutoDispose (value_type &&value_r)
 Ctor taking rvalue and no dispose function.
 AutoDispose (value_type &&value_r, const Dispose &dispose_r)
 Ctor taking rvalue and dispose function.
 operator reference () const
 Provide implicit conversion to Tp&.
reference value () const
 Reference to the Tp object.
reference operator* () const
 Reference to the Tp object.
value_typeoperator-> () const
 Pointer to the Tp object (asserted to be != NULL).
void reset ()
 Reset to default Ctor values.
void swap (AutoDispose &rhs)
 Exchange the contents of two AutoDispose objects.
bool unique () const
 Returns true if this is the only AutoDispose instance managing the current data object.
const DisposegetDispose () const
 Return the current dispose function.
void setDispose (const Dispose &dispose_r)
 Set a new dispose function.
void resetDispose ()
 Set no dispose function.
void swapDispose (Dispose &dispose_r)
 Exchange the dispose function.

Additional Inherited Members

- Public Types inherited from zypp::AutoDispose< FILE * >
typedef boost::call_traits< FILE * >::param_type param_type
typedef boost::call_traits< FILE * >::reference reference
typedef boost::call_traits< FILE * >::const_reference const_reference
typedef FILE * value_type
typedef boost::call_traits< FILE * >::value_type result_type
using dispose_param_type = typename std::conditional< std::is_pointer< FILE * >::value||std::is_integral< FILE * >::value, FILE * const, reference >::type
using Dispose = function< void(dispose_param_type)>
 Dispose function signatue.

Detailed Description

AutoDispose<FILE*> calling ::fclose

See also

Definition at line 312 of file AutoDispose.h.

Constructor & Destructor Documentation

◆ AutoFILE()

zypp::AutoFILE::AutoFILE ( FILE *  file_r = nullptr)

Definition at line 314 of file AutoDispose.h.

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