LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Namespaces | |
_GenericMap | |
_SimpleGenericMap | |
detail | |
test | |
testUtils | |
Classes | |
class | GenericMap |
Interface for a heterogeneous map. More... | |
class | MutableGenericMap |
Interface for a GenericMap that allows element addition and removal. More... | |
class | Key |
Key for type-safe lookup in a GenericMap. More... | |
class | PolymorphicValue |
Container that passes Storable objects by value while preserving type. More... | |
class | StorableHelper |
"Trampoline" for Storable to let it be used as a base class in Python. More... | |
class | SimpleGenericMap |
A GenericMap that allows insertion and deletion of arbitrary values. More... | |
class | UnsupportedOperationException |
Exception thrown by Storable operations for unimplemented operations. More... | |
class | Storable |
Interface supporting iteration over heterogenous containers. More... | |
Typedefs | |
using | PyStorable = py::class_< Storable, PySharedPtr< Storable >, table::io::Persistable, StorableHelper<> > |
Functions | |
template<typename V , typename K > | |
constexpr Key< K, V > | makeKey (K const &id) |
Factory function for Key, to enable type parameter inference. More... | |
template<typename K , typename V > | |
std::ostream & | operator<< (std::ostream &os, Key< K, V > const &key) |
Output operator for Key. More... | |
void | swap (PolymorphicValue &lhs, PolymorphicValue &rhs) noexcept |
Swap specialization for PolymorphicValue. More... | |
std::string | declareGenericMapRestrictions (std::string const &className, std::string const &keyName) |
std::ostream & | operator<< (std::ostream &os, Storable const &storable) |
Output operator for Storable. More... | |
void | wrapGenericMap (utils::python::WrapperCollection &wrappers) |
void | wrapSimpleGenericMap (utils::python::WrapperCollection &wrappers) |
void | wrapStorable (utils::python::WrapperCollection &wrappers) |
PYBIND11_MODULE (_typehandling, mod) | |
using lsst::afw::typehandling::PyStorable = typedef py::class_<Storable, PySharedPtr<Storable>, table::io::Persistable, StorableHelper<> > |
Definition at line 41 of file _Storable.cc.
std::string lsst::afw::typehandling::declareGenericMapRestrictions | ( | std::string const & | className, |
std::string const & | keyName | ||
) |
|
constexpr |
Factory function for Key, to enable type parameter inference.
id | the key ID to create. |
K
.Calling this function prevents you from having to explicitly name the key type:
auto key = makeKey<int>("foo");
std::ostream & operator<< | ( | std::ostream & | os, |
Key< K, V > const & | key | ||
) |
Output operator for Key.
The output will use C++ template notation for the key; for example, a key "foo" pointing to an int
may print as "foo<int>"
.
os | the desired output stream |
key | the key to print |
os
K
is exception-safe.Definition at line 196 of file Key.h.
|
inline |
Output operator for Storable.
os | the desired output stream |
storable | the object to print |
os
UnsupportedOperationException | Thrown if storable does not have an implementation of Storable::toString. |
Definition at line 174 of file Storable.h.
lsst::afw::typehandling::PYBIND11_MODULE | ( | _typehandling | , |
mod | |||
) |
Definition at line 41 of file _typehandling.cc.
|
inlinenoexcept |
Swap specialization for PolymorphicValue.
Definition at line 152 of file PolymorphicValue.h.
void lsst::afw::typehandling::wrapGenericMap | ( | utils::python::WrapperCollection & | wrappers | ) |
Definition at line 221 of file _GenericMap.cc.
void lsst::afw::typehandling::wrapSimpleGenericMap | ( | utils::python::WrapperCollection & | wrappers | ) |
Definition at line 79 of file _SimpleGenericMap.cc.
void lsst::afw::typehandling::wrapStorable | ( | utils::python::WrapperCollection & | wrappers | ) |
Definition at line 43 of file _Storable.cc.