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;
55 Iterator
begin()
const {
return _internal.begin(); }
56 Iterator
end()
const {
return _internal.end(); }
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).
virtual bool isPersistable() const
Whether the map is persistable (true IFF all contained BoundedFields are persistable).
An object passed to Persistable::write to allow it to persist itself.
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.
def scale(algorithm, min, max=None, frame=None)
ApCorrMap & operator*=(double const scale)
Scale all fields by a constant.
A base class for objects that can be persisted via afw::table::io Archive classes.
A base class for image defects.
table::Key< std::string > name
ApCorrMap & operator/=(double const scale)
Internal::const_iterator Iterator
Iterator type returned by begin() and end().
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 CRTP facade class for subclasses of Persistable.