CMS 3D CMS Logo

ContextState.cc
Go to the documentation of this file.
3 
4 namespace cms::cuda {
6  if (stream_) {
7  throw cms::Exception("LogicError") << "Trying to set ContextState, but it already had a valid state";
8  }
9  }
10 
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
void throwIfNoStream() const
Definition: ContextState.cc:11
SharedStreamPtr stream_
Definition: ContextState.h:55
void throwIfStream() const
Definition: ContextState.cc:5