allpix::Object::PointerWrapper
#include <Object.hpp>
Inherits from allpix::Object::BaseWrapper< T >
Public Functions
Name | |
---|---|
PointerWrapper() =default Required default constructor. |
|
PointerWrapper(const T * obj) Constructor with object pointer to be wrapped. |
|
~PointerWrapper() override =default Required virtual destructor. |
|
PointerWrapper(const PointerWrapper & rhs) Explicit copy constructor to avoid copying std::once_flag. |
|
PointerWrapper & | operator=(const PointerWrapper & rhs) Explicit copy assignment operator to avoid copying std::once_flag. |
PointerWrapper(PointerWrapper && rhs) Explicit move constructor to avoid copying std::once_flag. |
|
PointerWrapper & | operator=(PointerWrapper && rhs) Explicit move assignment to avoid copying std::once_flag. |
virtual T * | get() const override Implementation of base class lazy loading mechanism with thread-safe call_once. |
ClassDefOverride(PointerWrapper , 1 ) |
Additional inherited members
Public Functions inherited from allpix::Object::BaseWrapper< T >
Name | |
---|---|
BaseWrapper(const BaseWrapper & rhs) =default Use default copy behaviour. |
|
BaseWrapper(BaseWrapper && rhs) =default Use default move behaviour. |
|
BaseWrapper() =default Required default constructor. |
|
BaseWrapper(const T * obj) Constructor with object pointer to be wrapped. |
|
void | store() Function to construct TRef object for wrapped pointer for persistent storage. |
ClassDef(BaseWrapper , 1 ) |
Protected Functions inherited from allpix::Object::BaseWrapper< T >
Name | |
---|---|
virtual | ~BaseWrapper() =default Required virtual destructor. |
bool | markedForStorage() const Helper to determine whether the pointed object will be stored. |
Protected Attributes inherited from allpix::Object::BaseWrapper< T >
Name | |
---|---|
T * | ptr_ |
TRef | ref_ transient value |
Detailed Description
template <class T >
class allpix::Object::PointerWrapper;
Public Functions Documentation
function PointerWrapper
PointerWrapper() =default
Required default constructor.
function PointerWrapper
inline explicit PointerWrapper(
const T * obj
)
Constructor with object pointer to be wrapped.
Parameters:
- obj Pointer to object
function ~PointerWrapper
~PointerWrapper() override =default
Required virtual destructor.
function PointerWrapper
inline PointerWrapper(
const PointerWrapper & rhs
)
Explicit copy constructor to avoid copying std::once_flag.
function operator=
inline PointerWrapper & operator=(
const PointerWrapper & rhs
)
Explicit copy assignment operator to avoid copying std::once_flag.
function PointerWrapper
inline PointerWrapper(
PointerWrapper && rhs
)
Explicit move constructor to avoid copying std::once_flag.
function operator=
inline PointerWrapper & operator=(
PointerWrapper && rhs
)
Explicit move assignment to avoid copying std::once_flag.
function get
inline virtual T * get() const override
Implementation of base class lazy loading mechanism with thread-safe call_once.
Return: Pointer to object
Reimplements: allpix::Object::BaseWrapper::get
function ClassDefOverride
ClassDefOverride(
PointerWrapper ,
1
)
Updated on 2025-02-27 at 14:14:46 +0000