![]() |
The Gaudi Framework
v29r0 (ff2e7097)
|
Implementation of a context specific storage accessible as a sort of smart reference class. More...
#include <GaudiKernel/ContextSpecificPtr.h>
Public Member Functions | |
ContextSpecificData () | |
Constructor with default initialization. More... | |
ContextSpecificData (const 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 154 of file ContextSpecificPtr.h.
|
inline |
Constructor with default initialization.
Definition at line 158 of file ContextSpecificPtr.h.
|
inline |
Constructor with prototype value.
Definition at line 160 of file ContextSpecificPtr.h.
|
inline |
Destructor.
Definition at line 163 of file ContextSpecificPtr.h.
|
privatedelete |
|
inline |
Return the sum of all the contained values using init as first value.
Definition at line 185 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 190 of file ContextSpecificPtr.h.
|
inline |
Call a function on each element, passing slot# as well.
Definition at line 211 of file ContextSpecificPtr.h.
|
inline |
Definition at line 216 of file ContextSpecificPtr.h.
|
inline |
Call a function on each contained value.
Definition at line 197 of file ContextSpecificPtr.h.
|
inline |
Call a function on each contained value. (non-const version)
Definition at line 204 of file ContextSpecificPtr.h.
|
inline |
Definition at line 165 of file ContextSpecificPtr.h.
|
inline |
Definition at line 173 of file ContextSpecificPtr.h.
|
inline |
Assignment operator.
Definition at line 182 of file ContextSpecificPtr.h.
|
private |
Prototype value.
Definition at line 226 of file ContextSpecificPtr.h.
|
mutableprivate |
Internal implementation.
Definition at line 228 of file ContextSpecificPtr.h.