Class ApCorrMap

Inheritance Relationships

Base Types

Class Documentation

class ApCorrMap : public lsst::afw::table::io::PersistableFacade<ApCorrMap>, public Storable

A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.

ApCorrMap simply adds error handling accessors, persistence, and a bit of encapsulation to std::map (given the simplified interface, for instance, we could switch to unordered_map or some other underyling container in the future).

Public Types

typedef Internal::const_iterator Iterator

Iterator type returned by begin() and end(). Dereferences to a pair<string,std::shared_ptr<BoundedField>>.

Public Functions

ApCorrMap()
ApCorrMap(ApCorrMap const&)
ApCorrMap(ApCorrMap&&)
ApCorrMap &operator=(ApCorrMap const&)
ApCorrMap &operator=(ApCorrMap&&)
~ApCorrMap()
Iterator begin() const
Iterator end() const
std::size_t size() const
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.

std::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.

void set(std::string const &name, std::shared_ptr<math::BoundedField> field)

Add or replace an aperture correction.

bool isPersistable() const

Whether the map is persistable (true IFF all contained BoundedFields are persistable).

ApCorrMap &operator*=(double const scale)

Scale all fields by a constant.

ApCorrMap &operator/=(double const scale)
std::shared_ptr<typehandling::Storable> cloneStorable() const

Create a new ApCorrMap that is a copy of this one.

Public Static Attributes

std::size_t const MAX_NAME_LENGTH = 64

Maximum number of characters for an aperture correction name (required for persistence).