Class ApCorrMap¶
Defined in File ApCorrMap.h
Inheritance Relationships¶
Base Types¶
public lsst::afw::table::io::PersistableFacade< ApCorrMap >
(Template Class PersistableFacade)public Storable
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
()¶
-
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.
Add or replace an aperture correction.
-
bool
isPersistable
() const¶ Whether the map is persistable (true IFF all contained BoundedFields are persistable).
-
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).
-
typedef Internal::const_iterator