24 #ifndef LSST_AFW_IMAGE_ApCorrMap_h_INCLUDED
25 #define LSST_AFW_IMAGE_ApCorrMap_h_INCLUDED
45 typedef std::map<std::string, std::shared_ptr<math::BoundedField>> Internal;
58 std::size_t
size()
const {
return _internal.size(); }
61 std::shared_ptr<math::BoundedField>
const operator[](std::string
const&
name)
const;
64 std::shared_ptr<math::BoundedField>
const get(std::string
const&
name)
const;
67 void set(std::string
const&
name, std::shared_ptr<math::BoundedField>
field);
77 virtual std::string getPersistenceName()
const;
79 virtual std::string getPythonModule()
const;
89 #endif // !LSST_AFW_IMAGE_ApCorrMap_h_INCLUDED
static std::size_t const MAX_NAME_LENGTH
Maximum number of characters for an aperture correction name (required for persistence).
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.
ApCorrMap & operator*=(double const scale)
Scale all fields by a constant.
std::shared_ptr< math::BoundedField > const operator[](std::string const &name) const
Return the field with the given name, throwing NotFoundError when the name is not present...
A base class for objects that can be persisted via afw::table::io Archive classes.
table::Key< std::string > name
virtual bool isPersistable() const
Whether the map is persistable (true IFF all contained BoundedFields are persistable).
ApCorrMap & operator/=(double const scale)
void set(std::string const &name, std::shared_ptr< math::BoundedField > field)
Add or replace an aperture correction.
io::OutputArchiveHandle OutputArchiveHandle
Internal::const_iterator Iterator
Iterator type returned by begin() and end().
A CRTP facade class for subclasses of Persistable.