PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Namespaces | Macros | Functions
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

 std
 
 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::ostreamstd::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

#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.

Function Documentation

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;

Definition at line 182 of file sharedPtr.h.