LSSTApplications  18.0.0+46,18.0.0+96,19.0.0,19.0.0+1,19.0.0+2,19.0.0+5,19.0.0+6,19.0.0+7,19.0.0-1-g20d9b18+2,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+2,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+5,19.0.0-1-g8c57eb9+2,19.0.0-1-gb5175dc+5,19.0.0-1-gd7f3e1b+5,19.0.0-1-gdc0e4a7+5,19.0.0-1-ge272bc4+2,19.0.0-1-gf46fa72+1,19.0.0-2-g0d9f9cd+5,19.0.0-2-g1c703f9ef+1,19.0.0-2-g3d9e4fb2+5,19.0.0-2-g72d3ad5,19.0.0-2-gd955cfd+5,19.0.0-2-gdbc0a5a+2,19.0.0-3-g2d13df8,19.0.0-4-g725f80e+1,19.0.0-4-g80b229a,19.0.0-7-gf796fef9+6,19.0.0-8-g608b899+2,w.2019.49
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
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
py::object result
Definition: _schema.cc:429