![]() |
ATLAS Offline Software
|
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the const case only a const pointer is returned The class takes the ownership of the object using a shared_ptr. More...
#include <TransientConstSharedPtr.h>
Public Types | |
| using | element_type = Obj |
| type name More... | |
Public Member Functions | |
| Obj * | get () |
| Get (non-const) access to the underlying object. More... | |
| Obj * | operator-> () |
| const Obj * | get () const |
| Get const access to the underlying object. More... | |
| const Obj * | operator-> () const |
| const Obj & | operator* () const |
| Dereference operator. More... | |
| Obj & | operator* () |
| template<typename DerivType > | |
| TransientConstSharedPtr (std::unique_ptr< DerivType > ptr) requires(std | |
| Constructor from a unique_ptr. More... | |
| template<typename DerivType > | |
| TransientConstSharedPtr (std::shared_ptr< DerivType > ptr) requires(std | |
| Constructor from shared_ptr. More... | |
| TransientConstSharedPtr (Obj *ptr) | |
| Constructor from raw ptr. More... | |
| TransientConstSharedPtr ()=default | |
| Standard constructor. More... | |
| template<typename DerivType > | |
| TransientConstSharedPtr (const TransientConstSharedPtr< DerivType > &other) requires(std | |
| Delete the copy constructor if the object is const. More... | |
| template<typename DerivType > | |
| TransientConstSharedPtr (TransientConstSharedPtr< DerivType > &&other) requires(std | |
| Standard move constructor. More... | |
| template<typename DerivType > | |
| TransientConstSharedPtr & | operator= (const TransientConstSharedPtr< DerivType > &other) requires(std |
| Assignment operator. More... | |
| template<typename DerivType > | |
| TransientConstSharedPtr & | operator= (const std::shared_ptr< DerivType > &other) requires(std |
| template<typename DerivType > | |
| TransientConstSharedPtr & | operator= (TransientConstSharedPtr< DerivType > &&other) requires(std |
| Move assignment operator. More... | |
| template<typename DerivType > | |
| TransientConstSharedPtr & | operator= (std::unique_ptr< DerivType > &&other) requires(std |
| template<typename DerivType > | |
| TransientConstSharedPtr & | operator= (std::shared_ptr< DerivType > &&other) requires(std |
| template<typename DerivType > | |
| void | reset (std::unique_ptr< DerivType > newObj) requires(std |
| Overload the pointer. More... | |
| template<typename DerivType > | |
| void | reset (std::shared_ptr< DerivType > &&newObj) requires(std |
| template<typename DerivType > | |
| void | reset (const std::shared_ptr< DerivType > &newObj) requires(std |
| void | reset () |
| std::shared_ptr< const Obj > | release () |
| Release the memory. More... | |
| operator bool () const | |
| Is the pointer defined. More... | |
| bool | operator! () const |
| size_t | use_count () const |
| How many clients does the pointer have. More... | |
| bool | operator< (const TransientConstSharedPtr &other) const |
| Smaller operator to insert the pointer into sets. More... | |
| bool | operator== (const TransientConstSharedPtr &other) const |
| Equal operator. More... | |
| bool | operator!= (const TransientConstSharedPtr &other) const |
Private Attributes | |
| std::shared_ptr< Obj > | m_ptr {} |
Friends | |
| template<typename DerivType > | |
| class | GeoModel::TransientConstSharedPtr |
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the const case only a const pointer is returned The class takes the ownership of the object using a shared_ptr.
Definition at line 13 of file TransientConstSharedPtr.h.
| using GeoModel::TransientConstSharedPtr< Obj >::element_type = Obj |
type name
Definition at line 17 of file TransientConstSharedPtr.h.
|
inline |
Constructor from a unique_ptr.
Definition at line 30 of file TransientConstSharedPtr.h.
|
inline |
Constructor from shared_ptr.
Definition at line 34 of file TransientConstSharedPtr.h.
|
inline |
Constructor from raw ptr.
Definition at line 37 of file TransientConstSharedPtr.h.
|
default |
Standard constructor.
|
inline |
Delete the copy constructor if the object is const.
Definition at line 43 of file TransientConstSharedPtr.h.
|
inline |
Standard move constructor.
Definition at line 48 of file TransientConstSharedPtr.h.
|
inline |
Get (non-const) access to the underlying object.
Definition at line 19 of file TransientConstSharedPtr.h.
|
inline |
|
inline |
|
inline |
Definition at line 107 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 119 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 26 of file TransientConstSharedPtr.h.
|
inline |
|
inline |
Definition at line 20 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 23 of file TransientConstSharedPtr.h.
|
inline |
Smaller operator to insert the pointer into sets.
Definition at line 112 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 62 of file TransientConstSharedPtr.h.
|
inline |
Assignment operator.
Definition at line 54 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 81 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 75 of file TransientConstSharedPtr.h.
|
inline |
Move assignment operator.
Definition at line 69 of file TransientConstSharedPtr.h.
|
inline |
Equal operator.
Definition at line 116 of file TransientConstSharedPtr.h.
|
inline |
|
inline |
Definition at line 102 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 98 of file TransientConstSharedPtr.h.
|
inline |
Definition at line 93 of file TransientConstSharedPtr.h.
|
inline |
Overload the pointer.
Definition at line 88 of file TransientConstSharedPtr.h.
|
inline |
|
friend |
Definition at line 15 of file TransientConstSharedPtr.h.
|
private |
Definition at line 124 of file TransientConstSharedPtr.h.
1.8.18