|
lsst.afw gf03f0b42f3+b1047159b2
|
"Trampoline" for Storable to let it be used as a base class in Python. More...
#include <python.h>
Public Member Functions | |
| template<typename... Args> | |
| StorableHelper (Args... args) | |
| Delegating constructor for wrapped class. | |
| std::shared_ptr< Storable > | cloneStorable () const override |
| Create a new object that is a copy of this one (optional operation). | |
| std::string | toString () const override |
| Create a string representation of this object (optional operation). | |
| std::size_t | hash_value () const override |
| Return a hash of this object (optional operation). | |
| bool | equals (Storable const &other) const noexcept override |
| bool | isPersistable () const noexcept override |
| Return true if this particular object can be persisted using afw::table::io. | |
| std::string | getPersistenceName () const override |
| Return the unique name used to persist this object and look up its factory. | |
| std::string | getPythonModule () const override |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. | |
| void | write (table::io::OutputArchiveHandle &handle) const override |
| Write the object to one or more catalogs. | |
"Trampoline" for Storable to let it be used as a base class in Python.
Subclasses of Storable that are wrapped in pybind11 should have a similar helper that subclasses StorableHelper<subclass>. This helper can be skipped if the subclass neither adds any virtual methods nor implements any abstract methods.
| Base | the exact (most specific) class being wrapped |
|
inlineexplicit |
Delegating constructor for wrapped class.
While we would like to simply inherit base class constructors, when doing so, we cannot change their access specifiers. One consequence is that it's not possible to use inheritance to expose a protected constructor to python. The alternative, used here, is to create a new public constructor that delegates to the base class public or protected constructor with the same signature.
| Args | Variadic type specification |
| ...args | Arguments to forward to the Base class constructor. |
|
inlineoverridevirtual |
Create a new object that is a copy of this one (optional operation).
This operation is required for Storables that are stored in GenericMap by value, but not for those stored by shared pointer.
| UnsupportedOperationException | Thrown if this object is not cloneable. |
clone operation, the two should behave identically except for the formal return type.__deepcopy__ if it exists. Reimplemented from lsst::afw::typehandling::Storable.
|
inlineoverridenoexcept |
|
inlineoverridevirtual |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented from lsst::afw::table::io::Persistable.
|
inlineoverridevirtual |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented from lsst::afw::table::io::Persistable.
|
inlineoverridevirtual |
Return a hash of this object (optional operation).
| UnsupportedOperationException | Thrown if this object is not hashable. |
__hash__ if it exists. Reimplemented from lsst::afw::typehandling::Storable.
|
inlineoverridevirtualnoexcept |
Return true if this particular object can be persisted using afw::table::io.
Reimplemented from lsst::afw::table::io::Persistable.
|
inlineoverridevirtual |
Create a string representation of this object (optional operation).
| UnsupportedOperationException | Thrown if this object does not have a string representation. |
__repr__. Reimplemented from lsst::afw::typehandling::Storable.
|
overridevirtual |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented from lsst::afw::table::io::Persistable.