Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Namespaces | Functions
DataObjectSharedPtr.h File Reference

Smart pointer to manage DataObject reference counts. More...

#include "AthenaKernel/StorableConversions.h"
#include "GaudiKernel/DataObject.h"
#include "boost/intrusive_ptr.hpp"
#include <memory>
Include dependency graph for DataObjectSharedPtr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SG::DataObjectSharedPtr< T >
 Smart pointer to manage DataObject reference counts. More...
 

Namespaces

 SG
 Forward declaration.
 

Functions

void intrusive_ptr_add_ref (DataObject *o)
 
void intrusive_ptr_release (DataObject *o)
 
template<typename T >
DataObject * SG::asStorable (SG::DataObjectSharedPtr< T > pObject)
 

Detailed Description

Smart pointer to manage DataObject reference counts.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Feb, 2016

Definition in file DataObjectSharedPtr.h.

Function Documentation

◆ intrusive_ptr_add_ref()

void intrusive_ptr_add_ref ( DataObject *  o)
inline

Definition at line 24 of file DataObjectSharedPtr.h.

25 {
26  o->addRef();
27 }

◆ intrusive_ptr_release()

void intrusive_ptr_release ( DataObject *  o)
inline

Definition at line 30 of file DataObjectSharedPtr.h.

31 {
32  o->release();
33 }