![]() |
The Gaudi Framework
v36r16 (ea80daf8)
|
Implementation of a context specific storage accessible as a sort of smart reference class. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/ContextSpecificPtr.h>
Public Member Functions | |
ContextSpecificData (T proto={}) | |
Constructor with prototype value. More... | |
~ContextSpecificData () | |
Destructor. More... | |
operator T& () | |
operator T& () const | |
T & | operator= (const T &other) |
Assignment operator. More... | |
T | accumulate (T init) const |
Return the sum of all the contained values using init as first value. More... | |
template<class T1 , class BinaryOperation > | |
T1 | accumulate (T1 init, BinaryOperation op) const |
Return the accumulated result, through the operation 'op', of all the contained values using init as first value. More... | |
template<class F > | |
void | for_each (F f) const |
Call a function on each contained value. More... | |
template<class F > | |
void | for_each (F f) |
Call a function on each contained value. (non-const version) More... | |
template<class F > | |
void | for_all (F f) const |
Call a function on each element, passing slot# as well. More... | |
template<class F > | |
void | for_all (F f) |
Private Member Functions | |
ContextSpecificData (const ContextSpecificData &)=delete | |
Private Attributes | |
T | m_proto = {} |
Prototype value. More... | |
ContextSpecificPtr< T > | m_ptr |
Internal implementation. More... | |
Implementation of a context specific storage accessible as a sort of smart reference class.
New values are created from the prototype passed to the constructor.
Definition at line 156 of file ContextSpecificPtr.h.
|
inline |
Constructor with prototype value.
Definition at line 159 of file ContextSpecificPtr.h.
|
inline |
|
privatedelete |
|
inline |
Return the sum of all the contained values using init as first value.
Definition at line 178 of file ContextSpecificPtr.h.
|
inline |
Return the accumulated result, through the operation 'op', of all the contained values using init as first value.
Definition at line 183 of file ContextSpecificPtr.h.
|
inline |
Definition at line 205 of file ContextSpecificPtr.h.
|
inline |
Call a function on each element, passing slot# as well.
Definition at line 201 of file ContextSpecificPtr.h.
|
inline |
Call a function on each contained value. (non-const version)
Definition at line 195 of file ContextSpecificPtr.h.
|
inline |
Call a function on each contained value.
Definition at line 189 of file ContextSpecificPtr.h.
|
inline |
|
inline |
|
inline |
Assignment operator.
Definition at line 175 of file ContextSpecificPtr.h.
|
private |
Prototype value.
Definition at line 214 of file ContextSpecificPtr.h.
|
mutableprivate |
Internal implementation.
Definition at line 216 of file ContextSpecificPtr.h.