LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Types | |
using | value_type = T |
using | const_value_type = std::add_const_t< value_type > |
using | reference = std::add_lvalue_reference_t< value_type > |
using | const_reference = std::add_lvalue_reference_t< const_value_type > |
using | pointer = std::add_pointer_t< value_type > |
using | const_pointer = std::add_pointer_t< const_value_type > |
Public Member Functions | |
~PointerToData_t () | |
Destructor: gets rid of the owned data. More... | |
operator bool () const | |
Returns whether we point to something. More... | |
bool | operator! () const |
Returns whether we point to nothing. More... | |
bool | hasData () const |
Returns whether we have data. More... | |
bool | owned () const |
Returns whether we have data and we own it. More... | |
void | SetData (pointer data, bool owned) |
Sets the data and the ownership. More... | |
void | AcquireData (pointer data) |
Acquire ownership of the specified data. More... | |
void | PointToData (pointer data) |
Point to the specified data, not acquiring ownership. More... | |
void | PointToData (reference data) |
Point to the specified data, not acquiring ownership. More... | |
void | StealData (std::remove_const_t< T > &&data) |
Move data from the specified object, and own it. More... | |
void | NewData (T const &data) |
Create a owned copy of the specified object. More... | |
void | Clear () |
Stop pointing to the data; if owned, delete it. More... | |
Dereferencing | |
const_reference | operator* () const |
reference | operator* () |
const_pointer | operator-> () const |
pointer | operator-> () |
Protected Attributes | |
bool | bOwned = false |
whether we own our data More... | |
pointer | pData = nullptr |
pointer to data More... | |
Definition at line 107 of file RawDataDrawer.cxx.
using details::PointerToData_t< T >::const_pointer = std::add_pointer_t<const_value_type> |
Definition at line 114 of file RawDataDrawer.cxx.
using details::PointerToData_t< T >::const_reference = std::add_lvalue_reference_t<const_value_type> |
Definition at line 112 of file RawDataDrawer.cxx.
using details::PointerToData_t< T >::const_value_type = std::add_const_t<value_type> |
Definition at line 110 of file RawDataDrawer.cxx.
using details::PointerToData_t< T >::pointer = std::add_pointer_t<value_type> |
Definition at line 113 of file RawDataDrawer.cxx.
using details::PointerToData_t< T >::reference = std::add_lvalue_reference_t<value_type> |
Definition at line 111 of file RawDataDrawer.cxx.
using details::PointerToData_t< T >::value_type = T |
Definition at line 109 of file RawDataDrawer.cxx.
|
inline |
Destructor: gets rid of the owned data.
Definition at line 117 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::Clear().
|
inline |
Acquire ownership of the specified data.
Definition at line 148 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::SetData().
Referenced by details::PointerToData_t< T >::NewData(), and details::PointerToData_t< T >::StealData().
|
inline |
Stop pointing to the data; if owned, delete it.
Definition at line 158 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::bOwned, and details::PointerToData_t< T >::pData.
Referenced by evd::details::RawDigitCacheDataClass::empty(), evd::details::RawDigitInfo_t::MaxCharge(), details::PointerToData_t< T >::SetData(), and details::PointerToData_t< T >::~PointerToData_t().
|
inline |
Returns whether we have data.
Definition at line 135 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::pData.
Referenced by details::PointerToData_t< T >::operator bool(), details::PointerToData_t< T >::operator!(), and details::PointerToData_t< T >::owned().
|
inline |
Create a owned copy of the specified object.
Definition at line 156 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::AcquireData().
|
inline |
Returns whether we point to something.
Definition at line 129 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::hasData().
|
inline |
Returns whether we point to nothing.
Definition at line 132 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::hasData().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether we have data and we own it.
Definition at line 138 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::bOwned, and details::PointerToData_t< T >::hasData().
Referenced by details::PointerToData_t< T >::SetData().
|
inline |
Point to the specified data, not acquiring ownership.
Definition at line 150 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::SetData().
|
inline |
Point to the specified data, not acquiring ownership.
Definition at line 152 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::SetData().
|
inline |
Sets the data and the ownership.
Definition at line 141 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::bOwned, details::PointerToData_t< T >::Clear(), details::PointerToData_t< T >::owned(), and details::PointerToData_t< T >::pData.
Referenced by details::PointerToData_t< T >::AcquireData(), and details::PointerToData_t< T >::PointToData().
|
inline |
Move data from the specified object, and own it.
Definition at line 154 of file RawDataDrawer.cxx.
References details::PointerToData_t< T >::AcquireData().
|
protected |
whether we own our data
Definition at line 166 of file RawDataDrawer.cxx.
Referenced by details::PointerToData_t< T >::Clear(), details::PointerToData_t< T >::owned(), and details::PointerToData_t< T >::SetData().
|
protected |
pointer to data
Definition at line 167 of file RawDataDrawer.cxx.
Referenced by details::PointerToData_t< T >::Clear(), details::PointerToData_t< T >::hasData(), details::PointerToData_t< T >::operator*(), details::PointerToData_t< T >::operator->(), and details::PointerToData_t< T >::SetData().