|  | ATLAS Offline Software
    | 
A smart pointer class that holds a single Sample object. More...
#include <SamplePtr.h>
| Public Member Functions | |
| void | testInvariant () const | 
| test the invariant of this object  More... | |
| SamplePtr () | |
| standard constructor  More... | |
| SamplePtr (Sample *val_sample) | |
| initializing constructor  More... | |
| SamplePtr (std::unique_ptr< Sample > val_sample) | |
| initializing constructor  More... | |
| SamplePtr (const SamplePtr &that) | |
| standard copy constructor  More... | |
| SamplePtr (SamplePtr &&that) | |
| standard move constructor  More... | |
| ~SamplePtr () | |
| standard destructor  More... | |
| SamplePtr & | operator= (const SamplePtr &that) | 
| standard assignment operator  More... | |
| SamplePtr & | operator= (SamplePtr &&that) | 
| standard move operator  More... | |
| bool | empty () const | 
| get() == 0  More... | |
| Sample * | get () | 
| the sample itself  More... | |
| const Sample * | get () const | 
| the sample itself  More... | |
| Sample * | operator-> () | 
| the sample itself  More... | |
| const Sample * | operator-> () const | 
| the sample itself  More... | |
| Sample & | operator* () | 
| the sample itself  More... | |
| const Sample & | operator* () const | 
| the sample itself  More... | |
| Private Attributes | |
| Sample * | m_sample | 
| the sample contained  More... | |
A smart pointer class that holds a single Sample object.
To avoid various memory management issues, samples are usually held via such a smart pointer. Since the reference count is internal to the Sample object it is safe to assign the same Sample to multiple smart pointers.
Definition at line 34 of file SamplePtr.h.
| SH::SamplePtr::SamplePtr | ( | ) | 
| SH::SamplePtr::SamplePtr | ( | Sample * | val_sample | ) | 
| 
 | explicit | 
| SH::SamplePtr::SamplePtr | ( | SamplePtr && | that | ) | 
| SH::SamplePtr::~SamplePtr | ( | ) | 
| bool SH::SamplePtr::empty | ( | ) | const | 
| Sample * SH::SamplePtr::get | ( | ) | 
the sample itself
Definition at line 140 of file SamplePtr.cxx.
the sample itself
Definition at line 148 of file SamplePtr.cxx.
| Sample & SH::SamplePtr::operator* | ( | ) | 
the sample itself
Definition at line 177 of file SamplePtr.cxx.
the sample itself
Definition at line 187 of file SamplePtr.cxx.
| Sample * SH::SamplePtr::operator-> | ( | ) | 
the sample itself
Definition at line 157 of file SamplePtr.cxx.
the sample itself
Definition at line 167 of file SamplePtr.cxx.
| void SH::SamplePtr::testInvariant | ( | ) | const | 
| 
 | private | 
the sample contained
Definition at line 186 of file SamplePtr.h.
 1.8.18
 1.8.18