libzypp  17.8.0
PtrTypes.h File Reference
#include <iosfwd>
#include <string>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/intrusive_ptr.hpp>
Include dependency graph for PtrTypes.h:

Go to the source code of this file.

Classes

struct  zypp::NullDeleter
 shared_ptr custom deleter doing nothing. More...
 
struct  zypp::rw_pointer::Shared< D >
 
struct  zypp::rw_pointer::Intrusive< D >
 
struct  zypp::rw_pointer::Scoped< D >
 
struct  zypp::RW_pointer< D, DTraits >
 Wrapper for const correct access via Smart pointer types. More...
 
struct  zypp::RWCOW_pointer< D, DTraits >
 RW_pointer supporting 'copy on write' functionality. More...
 

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 zypp::str
 String related utilities and Regular expression matching.
 
 std
 
 zypp::rw_pointer
 Don't forgett to provide versions for PtrType and constPtrType, esp.
 

Macros

#define DEFINE_PTR_TYPE(NAME)
 Forward declaration of Ptr types. More...
 

Functions

std::string zypp::str::form (const char *format,...) __attribute__((format(printf
 Printf style construction of std::string. More...
 
template<>
std::ostream & std::operator<< (std::ostream &str, const zypp::shared_ptr< void > &obj)
 
template<>
std::ostream & std::dumpOn (std::ostream &str, const zypp::shared_ptr< void > &obj)
 

Detailed Description

See also
Smart pointer types

Definition in file PtrTypes.h.

Macro Definition Documentation

◆ DEFINE_PTR_TYPE

#define DEFINE_PTR_TYPE (   NAME)
Value:
class NAME; \
extern void intrusive_ptr_add_ref( const NAME * ); \
extern void intrusive_ptr_release( const NAME * ); \
typedef zypp::intrusive_ptr<NAME> NAME##_Ptr; \
typedef zypp::intrusive_ptr<const NAME> NAME##_constPtr;
void intrusive_ptr_add_ref(const ReferenceCounted *ptr_r)
void intrusive_ptr_release(const ReferenceCounted *ptr_r)

Forward declaration of Ptr types.

Definition at line 623 of file PtrTypes.h.