ATLAS Offline Software
|
#include <SurfaceHolderImpl.h>
Public Member Functions | |
SurfacePtrHolderImpl ()=default | |
default ctor More... | |
SurfacePtrHolderImpl (const S &s) | |
ctor from const Surface ref. More... | |
SurfacePtrHolderImpl (const S *s) | |
ctor from const Surface ptr. Takes ownership More... | |
SurfacePtrHolderImpl (const SurfacePtrHolderImpl &other) | |
copy ctor More... | |
SurfacePtrHolderImpl (SurfacePtrHolderImpl &&other) noexcept | |
Move constructor we just steal the resource and leave other to point to nullptr. More... | |
SurfacePtrHolderImpl & | operator= (const SurfacePtrHolderImpl &other) |
copy assingmemnt if surface is free we clone/copy. More... | |
SurfacePtrHolderImpl & | operator= (SurfacePtrHolderImpl &&other) noexcept |
Move assignement we just steal the resource and leave other to point to nullptr. More... | |
void | destroySurface () noexcept |
destroySurface deletes the ptr if not null and the surface isFree Usefull also for testing More... | |
const S * | surfacePtr () |
return the ptr we hold useful for tests More... | |
const S * | release () noexcept |
release ala unique_ptr release More... | |
Static Public Member Functions | |
static const S * | cloneHelper (const S *input) |
Helper for cloning or not when we need depending on if the surface isFree. More... | |
Protected Member Functions | |
~SurfacePtrHolderImpl () | |
Protected Attributes | |
const S * | m_associatedSurface = nullptr |
Definition at line 78 of file SurfaceHolderImpl.h.
|
default |
default ctor
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inlinenoexcept |
Move constructor we just steal the resource and leave other to point to nullptr.
Definition at line 97 of file SurfaceHolderImpl.h.
|
inlineprotected |
Definition at line 156 of file SurfaceHolderImpl.h.
|
inlinestatic |
|
inlinenoexcept |
destroySurface deletes the ptr if not null and the surface isFree Usefull also for testing
Definition at line 128 of file SurfaceHolderImpl.h.
|
inline |
copy assingmemnt if surface is free we clone/copy.
If not we just point to the one owned by detector geometry
Definition at line 105 of file SurfaceHolderImpl.h.
|
inlinenoexcept |
Move assignement we just steal the resource and leave other to point to nullptr.
Definition at line 116 of file SurfaceHolderImpl.h.
|
inlinenoexcept |
|
inline |
|
protected |
Definition at line 153 of file SurfaceHolderImpl.h.