Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
HeterogeneousCore
CUDACore
src
ContextState.cc
Go to the documentation of this file.
1
#include "
HeterogeneousCore/CUDACore/interface/ContextState.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
4
namespace
cms::cuda
{
5
void
ContextState::throwIfStream
()
const
{
6
if
(
stream_
) {
7
throw
cms::Exception
(
"LogicError"
) <<
"Trying to set ContextState, but it already had a valid state"
;
8
}
9
}
10
11
void
ContextState::throwIfNoStream
()
const
{
12
if
(not
stream_
) {
13
throw
cms::Exception
(
"LogicError"
) <<
"Trying to get ContextState, but it did not have a valid state"
;
14
}
15
}
16
}
// namespace cms::cuda
ecalDigis_cff.cuda
tuple cuda
Definition:
ecalDigis_cff.py:35
Exception
Definition:
hltDiff.cc:245
ContextState.h
cms::cuda::ContextState::stream_
SharedStreamPtr stream_
Definition:
ContextState.h:55
Exception.h
cms::cuda::ContextState::throwIfStream
void throwIfStream() const
Definition:
ContextState.cc:5
cms::cuda::ContextState::throwIfNoStream
void throwIfNoStream() const
Definition:
ContextState.cc:11
Generated for CMSSW Reference Manual by
1.8.5