36 "dimensions of a Kernel's images",
"pixel")),
39 if (nSpatialFunctions > 0) {
41 "spatialfunctions",
"archive IDs for the Kernel's spatial functions", nSpatialFunctions);
70 for (
std::size_t n = 0; n < spatialFunctionList.size(); ++n) {
71 array[n] = handle.
put(spatialFunctionList[n]);
83 return spatialFunctionList;
#define LSST_ARCHIVE_ASSERT(EXPR)
An assertion macro used to validate the structure of an InputArchive.
lsst::geom::Extent2I const getDimensions() const
Return the Kernel's dimensions (width, height)
std::vector< SpatialFunctionPtr > _spatialFunctionList
lsst::geom::Point2I getCtr() const
Return index of kernel's center.
lsst::afw::math::Function2< double > SpatialFunction
Kernel()
Construct a null Kernel of size 0,0.
Tag types used to declare specialized field types.
Base class for all records.
std::shared_ptr< RecordT > addNew()
Create a new record, add it to the end of the catalog, and return a pointer to it.
Defines the fields and offsets for a table.
An object passed to Persistable::write to allow it to persist itself.
void saveCatalog(BaseCatalog const &catalog)
Save a catalog in the archive.
BaseCatalog makeCatalog(Schema const &schema)
Return a new, empty catalog with the given schema.
int put(Persistable const *obj, bool permissive=false)
Save an object to the archive and return a unique ID that can be used to retrieve it from an InputArc...
CatalogT< BaseRecord > BaseCatalog
afw::table::PointKey< int > dimensions
afw::table::Key< afw::table::Array< int > > spatialFunctions
afw::table::Schema schema
void writeSpatialFunctions(afw::table::io::OutputArchiveHandle &handle, afw::table::BaseRecord &record, std::vector< SpatialFunctionPtr > const &spatialFunctionList) const
std::shared_ptr< afw::table::BaseRecord > write(afw::table::io::OutputArchiveHandle &handle, Kernel const &kernel) const
std::vector< SpatialFunctionPtr > readSpatialFunctions(afw::table::io::InputArchive const &archive, afw::table::BaseRecord const &record) const
afw::table::PointKey< int > center
PersistenceHelper(int nSpatialFunctions)