HepMC event record
|
Smart pointer for HepMC objects.
Uses shared_ptr to manage the object memory
weah_ptr<T>
m_this used
to keep track of shared pointer created to manage the object Definition at line 49 of file build/outputs/include/HepMC/Data/SmartPointer.h.
#include <SmartPointer.h>
Public Member Functions | |
Constructors | |
SmartPointer () | |
Default constructor (NULL pointer) More... | |
SmartPointer (const SmartPointer< T > &rhs) | |
Copy constructor. More... | |
SmartPointer (const shared_ptr< T > &rhs) | |
SmartPointer (T *raw_pointer) | |
Constructor creating shared pointer from raw pointer. More... | |
SmartPointer () | |
Default constructor (NULL pointer) More... | |
SmartPointer (const SmartPointer< T > &rhs) | |
Copy constructor. More... | |
SmartPointer (const shared_ptr< T > &rhs) | |
SmartPointer (T *raw_pointer) | |
Constructor creating shared pointer from raw pointer. More... | |
Accessors | |
SmartPointer & | operator= (const SmartPointer &rhs) |
Assignment. More... | |
bool | operator== (const SmartPointer &rhs) const |
Equality test. More... | |
bool | operator!= (const SmartPointer &rhs) const |
Inequality test. More... | |
bool | operator< (const SmartPointer &rhs) const |
Less-than comparison. More... | |
const shared_ptr< T > | operator-> () |
Non-const access to the contained shared_ptr, with non-const contained type. More... | |
T & | operator* () |
Non-const dereferencing to a reference of the contained type. More... | |
const shared_ptr< const T > | operator-> () const |
const T & | operator* () const |
Const dereferencing to a const reference of the contained type. More... | |
operator bool () const | |
SmartPointer & | operator= (const SmartPointer &rhs) |
Assignment. More... | |
bool | operator== (const SmartPointer &rhs) const |
Equality test. More... | |
bool | operator!= (const SmartPointer &rhs) const |
Inequality test. More... | |
bool | operator< (const SmartPointer &rhs) const |
Less-than comparison. More... | |
const shared_ptr< T > | operator-> () |
Non-const access to the contained shared_ptr, with non-const contained type. More... | |
T & | operator* () |
Non-const dereferencing to a reference of the contained type. More... | |
const shared_ptr< const T > | operator-> () const |
const T & | operator* () const |
Const dereferencing to a const reference of the contained type. More... | |
operator bool () const | |
Deprecated functions | |
operator T* () | |
operator bool () | |
Cast to bool. More... | |
operator T* () | |
operator bool () | |
Cast to bool. More... | |
Private Attributes | |
Fields | |
shared_ptr< T > | m_data |
Shared pointer. More... | |
SmartPointer | ( | ) |
Default constructor (NULL pointer)
SmartPointer | ( | const SmartPointer< T > & | rhs | ) |
Copy constructor.
SmartPointer | ( | const shared_ptr< T > & | rhs | ) |
Construct SmartPointer using shared pointer
SmartPointer | ( | T * | raw_pointer | ) |
Constructor creating shared pointer from raw pointer.
SmartPointer | ( | ) |
Default constructor (NULL pointer)
SmartPointer | ( | const SmartPointer< T > & | rhs | ) |
Copy constructor.
SmartPointer | ( | const shared_ptr< T > & | rhs | ) |
Construct SmartPointer using shared pointer
SmartPointer | ( | T * | raw_pointer | ) |
Constructor creating shared pointer from raw pointer.
|
inline |
Bool cast operator
Definition at line 103 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Bool cast operator
Definition at line 103 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Cast to bool.
Definition at line 119 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Cast to bool.
Definition at line 119 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Cast to raw pointer
Definition at line 116 of file include/HepMC/Data/SmartPointer.h.
References SmartPointer< T >::m_data.
|
inline |
Cast to raw pointer
Definition at line 116 of file build/outputs/include/HepMC/Data/SmartPointer.h.
References SmartPointer< T >::m_data.
|
inline |
Inequality test.
Definition at line 82 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Inequality test.
Definition at line 82 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Non-const dereferencing to a reference of the contained type.
Definition at line 89 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Non-const dereferencing to a reference of the contained type.
Definition at line 89 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Const dereferencing to a const reference of the contained type.
Definition at line 95 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Const dereferencing to a const reference of the contained type.
Definition at line 95 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Non-const access to the contained shared_ptr, with non-const contained type.
Definition at line 87 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Non-const access to the contained shared_ptr, with non-const contained type.
Definition at line 87 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Const access to the contained shared_ptr, with const contained type
Definition at line 93 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Const access to the contained shared_ptr, with const contained type
Definition at line 93 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Less-than comparison.
Definition at line 84 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Less-than comparison.
Definition at line 84 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Assignment.
Definition at line 77 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Assignment.
Definition at line 77 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
inline |
Equality test.
Definition at line 80 of file include/HepMC/Data/SmartPointer.h.
|
inline |
Equality test.
Definition at line 80 of file build/outputs/include/HepMC/Data/SmartPointer.h.
|
private |
Shared pointer.
Definition at line 131 of file build/outputs/include/HepMC/Data/SmartPointer.h.