lsst.afw
tickets.DM-23835-g31c64b24f1
|
Go to the documentation of this file.
22 #ifndef LSST_AFW_CAMERAGEOM_DETECTORCOLLECTION_H
23 #define LSST_AFW_CAMERAGEOM_DETECTORCOLLECTION_H
35 namespace cameraGeom {
151 public table::io::Persistable {
183 void write(OutputArchiveHandle& handle)
const override;
197 #endif // LSST_AFW_CAMERAGEOM_DETECTORCOLLECTION_H
const NameMap & getNameMap() const noexcept
Get a map keyed and ordered by name.
std::size_t size() const noexcept
Get the number of detectors.
daf::base::PropertyList * list
void remove(std::string const &name)
std::vector< std::shared_ptr< T > > List
std::shared_ptr< T > operator[](std::string const &name) const
Implement the [name] operator.
bool isPersistable() const noexcept override
DetectorCollections are always persistable.
bool empty() const noexcept
Determine if the collection contains any detectors.
std::shared_ptr< T > get(std::string const &name, std::shared_ptr< T > def=nullptr) const
Retrieve a detector by name, or fall back to a default.
A vector of catalogs used by Persistable.
virtual ~DetectorCollectionBase() noexcept=0
A base class for image defects.
An immutable collection of Detectors that can be accessed by name or ID.
DetectorCollectionBase() noexcept=default
DetectorCollectionBase & operator=(DetectorCollectionBase const &)=default
std::map< int, std::shared_ptr< T > > IdMap
std::unordered_map< std::string, std::shared_ptr< T > > NameMap
void add(std::shared_ptr< T > detector)
Add a detector to the collection.
table::Key< int > detector
const IdMap & getIdMap() const noexcept
Get a map keyed and ordered by ID.
const lsst::geom::Box2D & getFpBBox() const noexcept
Return a focal plane bounding box that encompasses all detectors.
A representation of a detector in a mosaic camera.
An abstract base class for collections of Detectors and specific subclasses thereof.