ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Athena::RCURead< T > Class Template Reference

Helper to read data from a RCUObject. More...

#include <RCUObject.h>

Collaboration diagram for Athena::RCURead< T >:

Public Member Functions

 RCURead (const RCUObject< T > &rcuobj)
 Constructor. More...
 
 operator bool () const
 
const T & operator* () const
 Access data. More...
 
const T * operator-> () const
 Access data. More...
 

Private Attributes

const T * m_obj
 The data object we're reading. More...
 

Detailed Description

template<class T>
class Athena::RCURead< T >

Helper to read data from a RCUObject.

See the header comments for details.

Definition at line 136 of file RCUObject.h.

Constructor & Destructor Documentation

◆ RCURead()

template<class T >
Athena::RCURead< T >::RCURead ( const RCUObject< T > &  rcuobj)

Constructor.

Parameters
rcuobjThe RCUObject we're reading.

Member Function Documentation

◆ operator bool()

template<class T >
Athena::RCURead< T >::operator bool ( ) const
inline

Definition at line 491 of file RCUObject.h.

491 { return m_obj != nullptr; }

◆ operator*()

template<class T >
const T& Athena::RCURead< T >::operator* ( ) const

Access data.

◆ operator->()

template<class T >
const T* Athena::RCURead< T >::operator-> ( ) const

Access data.

Member Data Documentation

◆ m_obj

template<class T >
const T* Athena::RCURead< T >::m_obj
private

The data object we're reading.

Definition at line 508 of file RCUObject.h.


The documentation for this class was generated from the following file:
Athena::RCURead::m_obj
const T * m_obj
The data object we're reading.
Definition: RCUObject.h:508