File IdFactory.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace afw
namespace table
class IdFactory
#include <IdFactory.h>

A polymorphic functor base class for generating record IDs for a table.

The IDs produced by an IdFactory need not be sequential, but they must be unique, both with respect to the IDs it generates itself and those passed to it via the notify() member function. Valid IDs must be nonzero, as zero is used to indicate null in some contexts.

Public Functions

virtual RecordId operator()() = 0

Return a new unique RecordId.

virtual void notify(RecordId id) = 0

Notify the IdFactory that the given ID has been used and must not be returned by operator().

virtual std::shared_ptr<IdFactory> clone() const = 0

Deep-copy the IdFactory.

IdFactory()
IdFactory(IdFactory const&)
IdFactory(IdFactory&&)
IdFactory &operator=(IdFactory const &other)
IdFactory &operator=(IdFactory &&other)
virtual ~IdFactory()

Public Static Functions

static std::shared_ptr<IdFactory> makeSimple()

Return a simple IdFactory that simply counts from 1.

This is used when an empty pointer is passed to the BaseTable constructor.

static std::shared_ptr<IdFactory> makeSource(RecordId expId, int reserved)

Return an IdFactory that includes another, fixed ID in the higher-order bits.

The final record ID will be:

(upper << reserved) | sequence
Parameters
  • [in] expId: ID to include in the upper bits via a bitwise OR.

  • [in] reserved: How many bits to reserve for the part of the ID that is unique.

static int computeReservedFromMaxBits(int maxBits)

Return the number to pass as the ‘reserved’ argument to makeSource for an exposure ID with the given maximum number of bits.

Parameters
  • [in] maxBits: The maximum number of bits an exposure ID can have.