ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder Struct Reference

#include <Helpers.h>

Collaboration diagram for CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder:

Public Member Functions

template<class T = const void>
constexpr operator T* () const
 
constexpr operator bool () const
 
template<class T >
 CUDAStreamPtrHolder (T *p)
 
 CUDAStreamPtrHolder ()=default
 

Public Attributes

void * ptr = nullptr
 

Detailed Description

Definition at line 109 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

Constructor & Destructor Documentation

◆ CUDAStreamPtrHolder() [1/2]

template<class T >
CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder::CUDAStreamPtrHolder ( T *  p)
inline

Definition at line 125 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

125  : ptr(p)
126  {
127  }

◆ CUDAStreamPtrHolder() [2/2]

CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder::CUDAStreamPtrHolder ( )
default

Member Function Documentation

◆ operator bool()

constexpr CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder::operator bool ( ) const
inlineconstexpr

Definition at line 119 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

120  {
121  return ptr != nullptr;
122  }

◆ operator T*()

template<class T = const void>
constexpr CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder::operator T* ( ) const
inlineconstexpr

Definition at line 114 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

115  {
116  return (T *) ptr;
117  }

Member Data Documentation

◆ ptr

void* CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder::ptr = nullptr

Definition at line 111 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.


The documentation for this struct was generated from the following file:
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CaloRecGPU::CUDA_Helpers::CUDAStreamPtrHolder::ptr
void * ptr
Definition: Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h:111