PVData C++ 8.0.7
Loading...
Searching...
No Matches
sharedPtr.h File Reference
#include <memory>
#include <boost/tr1/memory.hpp>
Include dependency graph for sharedPtr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  detail::ref_shower< T >
 

Namespaces

namespace  std
 
namespace  epics
 epics
 

Macros

#define SHARED_FROM_BOOST
 
#define POINTER_DEFINITIONS(clazz)
 

Functions

template<typename T >
inline ::detail::ref_shower< T > show_referrers (const std::tr1::shared_ptr< T > &ptr, bool self=true, bool weak=false)
 
template<typename T >
std::ostream & std::operator<< (std::ostream &strm, const ::detail::ref_shower< T > &refs)
 

Detailed Description

Author
Michael Davidsaver

Pulls in the std::tr1 namespace with the following names

class shared_ptr class weak_ptr class bad_weak_ptr function static_pointer_cast; function dynamic_pointer_cast function const_pointer_cast function swap function get_deleter function enable_shared_from_this

Definition in file sharedPtr.h.

Macro Definition Documentation

◆ POINTER_DEFINITIONS

#define POINTER_DEFINITIONS ( clazz)
Value:
typedef std::tr1::shared_ptr<clazz> shared_pointer; \
typedef std::tr1::shared_ptr<const clazz> const_shared_pointer; \
typedef std::tr1::weak_ptr<clazz> weak_pointer; \
typedef std::tr1::weak_ptr<const clazz> const_weak_pointer

Definition at line 198 of file sharedPtr.h.

◆ SHARED_FROM_BOOST

#define SHARED_FROM_BOOST

Definition at line 85 of file sharedPtr.h.

Function Documentation

◆ show_referrers()

template<typename T >
inline ::detail::ref_shower< T > show_referrers ( const std::tr1::shared_ptr< T > & ptr,
bool self = true,
bool weak = false )

Print a list (one per line) of shared_ptr which refer to the same object

Parameters
ptrUse the object pointed to by this shared_ptr
selfinclude or omit a line for this shared_ptr
weakinclude a line for each weak_ptr (not implemented)
shared_ptr<int> x;
ostream cout
inline ::detail::ref_shower< T > show_referrers(const std::tr1::shared_ptr< T > &ptr, bool self=true, bool weak=false)
Definition sharedPtr.h:182

Definition at line 182 of file sharedPtr.h.