24 #ifndef LSST_AFW_IMAGE_ApCorrMap_h_INCLUDED
25 #define LSST_AFW_IMAGE_ApCorrMap_h_INCLUDED
33 namespace lsst {
namespace afw {
namespace image {
43 typedef std::map<std::string,PTR(math::BoundedField)>
Internal;
61 PTR(math::BoundedField) const
get(std::
string const &
name) const;
70 void operator*=(
double const
scale);
71 void operator/=(
double const scale) { *
this *= 1.0/
scale; }
86 #endif // !LSST_AFW_IMAGE_ApCorrMap_h_INCLUDED
table::Key< std::string > name
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.
void set(std::string const &name, boost::shared_ptr< math::BoundedField > field)
Add or replace an aperture correction.
io::OutputArchiveHandle OutputArchiveHandle
std::map< std::string, boost::shared_ptr< math::BoundedField > > Internal
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
table::Key< table::Array< Kernel::Pixel > > image
A base class for objects that can be persisted via afw::table::io Archive classes.
virtual std::string getPythonModule() const
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
virtual bool isPersistable() const
Whether the map is persistable (true IFF all contained BoundedFields are persistable).
static std::size_t const MAX_NAME_LENGTH
Maximum number of characters for an aperture correction name (required for persistence).
An abstract base class for 2-d functions defined on an integer bounding boxes.
Internal::const_iterator Iterator
Iterator type returned by begin() and end(). Dereferences to a pair<string,PTR(BoundedField)>.
A CRTP facade class for subclasses of Persistable.
boost::shared_ptr< math::BoundedField > const get(std::string const &name) const
Return the field with the given name, returning an empty pointer when the name is not present...