LSSTApplications  17.0+1,17.0+10,17.0+16,17.0+17,17.0+2,17.0+3,17.0+4,17.0-1-g377950a+9,17.0.1-1-g444bd44+10,17.0.1-1-g46e6382+11,17.0.1-1-g4d4fbc4+4,17.0.1-1-g5f4ed7e,17.0.1-1-g703d48b+6,17.0.1-1-g8de6c91,17.0.1-1-g9deacb5+10,17.0.1-1-gf4e0155+11,17.0.1-1-gfc65f5f+10,17.0.1-1-gfc6fb1f+5,17.0.1-2-g3bdf598,17.0.1-2-g3e5d191+1,17.0.1-2-ga5d6a7c+5,17.0.1-2-gd73ec07+11,17.0.1-3-gcbbb95d+5,17.0.1-3-geaa4c8a+4,17.0.1-4-gf25f8e6+1,17.0.1-5-g19503fb,17.0.1-5-g5a10bbc+2,17.0.1-5-ga118c797,17.0.1-6-g640019af,17.0.1-6-g7bb9714,17.0.1-7-gf7766dbc3,17.0.1-8-g879df34,w.2019.13
LSSTDataManagementBasePackage
Persistable.cc
Go to the documentation of this file.
1 #include <memory>
2 
4 
5 namespace lsst {
6 namespace afw {
7 namespace table {
8 namespace io {
9 
17 template <typename T>
20  if (!result) {
21  throw LSST_EXCEPT(pex::exceptions::TypeError, "Dynamic pointer cast failed");
22  }
23  return result;
24 }
25 
26 } // namespace io
27 } // namespace table
28 } // namespace afw
29 } // namespace lsst
uint64_t * ptr
Definition: RangeSet.cc:88
static std::shared_ptr< T > dynamicCast(std::shared_ptr< Persistable > const &ptr)
Dynamically cast a shared_ptr.
Definition: Persistable.cc:18
py::object result
Definition: schema.cc:322
A base class for image defects.
T dynamic_pointer_cast(T... args)
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition: Exception.h:48
Reports errors from accepting an object of an unexpected or inappropriate type.
Definition: Runtime.h:167