LSSTApplications  18.0.0+64,19.0.0+37,19.0.0+4,19.0.0+40,19.0.0+43,19.0.0+48,19.0.0+8,19.0.0-1-g20d9b18+20,19.0.0-1-g49a97f9+2,19.0.0-1-g5549ca4+3,19.0.0-1-g8c57eb9+20,19.0.0-1-ga72da6b+2,19.0.0-1-gbfe0924+29,19.0.0-1-ge272bc4+20,19.0.0-1-gefe1d0d+19,19.0.0-10-ged17d6e+1,19.0.0-12-gcc0ea3c,19.0.0-13-g154200d1e+1,19.0.0-2-g0d9f9cd+40,19.0.0-2-g260436e+23,19.0.0-2-g9675b69+2,19.0.0-2-g9b11441+28,19.0.0-2-gde8e5e3+2,19.0.0-2-gf01c5b1,19.0.0-2-gff6972b+4,19.0.0-22-g282de62,19.0.0-29-g47457369+1,19.0.0-3-g27e4659+8,19.0.0-3-g6513920+30,19.0.0-3-gce3f959+16,19.0.0-5-g9aa49c1+1,19.0.0-7-g2f7a0e4+8,19.0.0-7-g686a884+3,19.0.0-7-g99cd2d5+4,19.0.0-7-ga57c4689+15,19.0.0-8-g079e426+5,w.2020.09
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