CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
SharedStreamPtr stream_
Definition: ContextState.h:55
void throwIfStream() const
Definition: ContextState.cc:5
void throwIfNoStream() const
Definition: ContextState.cc:11