libzypp 17.31.23
zypp::rw_pointer::Shared< D > Struct Template Reference

#include <base/PtrTypes.h>

Public Types

typedef shared_ptr< D > PtrType
 
typedef shared_ptr< const D > constPtrType
 

Public Member Functions

bool unique (const constPtrType &ptr_r)
 Check whether pointer is not shared.
 
bool unique (const PtrType &ptr_r)
 
long use_count (const constPtrType &ptr_r) const
 Return number of references.
 
long use_count (const PtrType &ptr_r) const
 

Detailed Description

template<class D>
struct zypp::rw_pointer::Shared< D >

Definition at line 190 of file PtrTypes.h.

Member Typedef Documentation

◆ PtrType

template<class D >
typedef shared_ptr<D> zypp::rw_pointer::Shared< D >::PtrType

Definition at line 192 of file PtrTypes.h.

◆ constPtrType

template<class D >
typedef shared_ptr<const D> zypp::rw_pointer::Shared< D >::constPtrType

Definition at line 193 of file PtrTypes.h.

Member Function Documentation

◆ unique() [1/2]

template<class D >
bool zypp::rw_pointer::Shared< D >::unique ( const constPtrType ptr_r)
inline

Check whether pointer is not shared.

Definition at line 195 of file PtrTypes.h.

◆ unique() [2/2]

template<class D >
bool zypp::rw_pointer::Shared< D >::unique ( const PtrType ptr_r)
inline

Definition at line 197 of file PtrTypes.h.

◆ use_count() [1/2]

template<class D >
long zypp::rw_pointer::Shared< D >::use_count ( const constPtrType ptr_r) const
inline

Return number of references.

Definition at line 200 of file PtrTypes.h.

◆ use_count() [2/2]

template<class D >
long zypp::rw_pointer::Shared< D >::use_count ( const PtrType ptr_r) const
inline

Definition at line 202 of file PtrTypes.h.


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