CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::CacheHandle< T > Class Template Reference

#include <CacheHandle.h>

Public Member Functions

 CacheHandle ()
 
 CacheHandle (T const *data)
 
T const * get () const
 
bool isValid () const
 
T const & operator* () const
 
T const * operator-> () const
 

Private Attributes

T const * data_
 

Detailed Description

template<typename T>
class edm::CacheHandle< T >

Author
W. David Dagenhart, created 25 March, 2021

Definition at line 15 of file CacheHandle.h.

Constructor & Destructor Documentation

◆ CacheHandle() [1/2]

template<typename T >
edm::CacheHandle< T >::CacheHandle ( )
inline

Definition at line 17 of file CacheHandle.h.

17 : data_(nullptr) {}
T const * data_
Definition: CacheHandle.h:32

◆ CacheHandle() [2/2]

template<typename T >
edm::CacheHandle< T >::CacheHandle ( T const *  data)
inline

Definition at line 18 of file CacheHandle.h.

18 : data_(data) {}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
T const * data_
Definition: CacheHandle.h:32

Member Function Documentation

◆ get()

template<typename T >
T const* edm::CacheHandle< T >::get ( ) const
inline

◆ isValid()

template<typename T >
bool edm::CacheHandle< T >::isValid ( void  ) const
inline

◆ operator*()

template<typename T >
T const& edm::CacheHandle< T >::operator* ( void  ) const
inline

Definition at line 27 of file CacheHandle.h.

27 { return *get(); }

◆ operator->()

template<typename T >
T const* edm::CacheHandle< T >::operator-> ( ) const
inline

Definition at line 26 of file CacheHandle.h.

26 { return get(); }

Member Data Documentation

◆ data_

template<typename T >
T const* edm::CacheHandle< T >::data_
private

Definition at line 32 of file CacheHandle.h.

Referenced by edm::CacheHandle< T >::get(), and edm::CacheHandle< T >::isValid().