File hashCombine.h¶
-
namespace
lsst
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Class for a simple mapping implementing a generic AstrometryTransform.
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.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
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
utils
Functions
-
std::size_t
hashCombine
(std::size_t seed)¶ Combine hashes
A specialization of hashCombine for a trivial argument list.
-
template<typename
T
, typename ...Rest
>
std::size_thashCombine
(std::size_t seed, const T &value, Rest... rest)¶ Combine hashes
This is provided as a convenience for those who need to hash a composite. C++11 includes std::hash, but neglects to include a facility for combining hashes.
Shall not throw exceptions.
- Return
A combined hash for all the arguments after
seed
.- Template Parameters
TRest
: the types to hash. All types must have a valid (in particular, non-throwing) specialization of std::hash.
- Parameters
seed
: An arbitrary starting value.valuerest
: The objects to hash.
To use it:
// Arbitrary seed; can change to get different hashes of same argument list std::size_t seed = 0; result = hashCombine(seed, obj1, obj2, obj3);
-
template<typename
InputIterator
>
std::size_thashIterable
(std::size_t seed, InputIterator begin, InputIterator end)¶ Combine hashes in an iterable.
This is provided as a convenience for those who need to hash a container.
Shall not throw exceptions.
- Return
A combined hash for all the elements in [begin, end).
- Template Parameters
InputIterator
: an iterator to the objects to be hashed. The pointed-to type must have a valid (in particular, non-throwing) specialization of std::hash.
- Parameters
seed
: An arbitrary starting value.beginend
: The range to hash.
To use it:
// Arbitrary seed; can change to get different hashes of same argument list std::size_t seed = 0; result = hashIterable(seed, container.begin(), container.end());
-
std::size_t