LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
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.