|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
Stores entries inside a single zone (a narrow declination stripe) in a sorted array. More...
#include <ZoneTypes.h>
Public Types | |
| typedef EntryT::Chunk | Chunk |
| typedef EntryT::Data | Data |
Public Member Functions | |
| ZoneEntryArray () | |
| ~ZoneEntryArray () | |
| void | init (int const capacity) |
| void | insert (double const ra, double const dec, Data *const data, Chunk *const chunk, int const index) |
| void | sort () |
| void | grow () |
| int | size () const |
| void | clear () |
| int | findLte (boost::uint32_t const ra) |
| int | findGte (boost::uint32_t const ra) const |
| void | computeMatchParams (ZoneStripeChunkDecomposition const &zsc, double const radius) |
| template<typename FilterT > | |
| int | pack (FilterT &filter) |
| template<typename FunctionT > | |
| void | apply (FunctionT &function) |
Public Attributes | |
| EntryT * | _entries |
| int | _size |
| int | _capacity |
| int | _zone |
| boost::uint32_t | _deltaRa |
Stores entries inside a single zone (a narrow declination stripe) in a sorted array.
Definition at line 113 of file ZoneTypes.h.
| typedef EntryT::Chunk lsst::ap::ZoneEntryArray< EntryT >::Chunk |
Definition at line 114 of file ZoneTypes.h.
| typedef EntryT::Data lsst::ap::ZoneEntryArray< EntryT >::Data |
Definition at line 115 of file ZoneTypes.h.
| lsst::ap::ZoneEntryArray< EntryT >::ZoneEntryArray | ( | ) |
Definition at line 84 of file ZoneTypes.cc.
| lsst::ap::ZoneEntryArray< EntryT >::~ZoneEntryArray | ( | ) |
Definition at line 89 of file ZoneTypes.cc.
| void lsst::ap::ZoneEntryArray< EntryT >::apply | ( | FunctionT & | function | ) |
Given a functor that implements
, applies it to every entry in the zone.
Definition at line 179 of file ZoneTypes.cc.
|
inline |
Empties the zone (without deallocating/shrinking memory).
Definition at line 146 of file ZoneTypes.h.
| void lsst::ap::ZoneEntryArray< EntryT >::computeMatchParams | ( | ZoneStripeChunkDecomposition const & | zsc, |
| double const | radius | ||
| ) |
Prepares for a distance based match with the given radius
Definition at line 137 of file ZoneTypes.cc.
|
inline |
Finds the first entry with ra greater than or equal to the specified value.
Definition at line 170 of file ZoneTypes.h.
|
inline |
Finds the last entry with ra less than or equal to the specified value.
Definition at line 149 of file ZoneTypes.h.
| void lsst::ap::ZoneEntryArray< EntryT >::grow | ( | ) |
Increases the size of the underlying array of entries by roughly 25% (and by at least 1).
Definition at line 122 of file ZoneTypes.cc.
| void lsst::ap::ZoneEntryArray< EntryT >::init | ( | int const | capacity | ) |
Initializes the zone, allocating space for the given number of entries.
Definition at line 99 of file ZoneTypes.cc.
|
inline |
| int lsst::ap::ZoneEntryArray< EntryT >::pack | ( | FilterT & | filter | ) |
Given a functor that implements
, removes any entry e where filter(e) returns false from the zone.
Definition at line 155 of file ZoneTypes.cc.
|
inline |
| void lsst::ap::ZoneEntryArray< EntryT >::sort | ( | ) |
| int lsst::ap::ZoneEntryArray< EntryT >::_capacity |
Definition at line 119 of file ZoneTypes.h.
| boost::uint32_t lsst::ap::ZoneEntryArray< EntryT >::_deltaRa |
Definition at line 121 of file ZoneTypes.h.
| EntryT* lsst::ap::ZoneEntryArray< EntryT >::_entries |
Definition at line 117 of file ZoneTypes.h.
| int lsst::ap::ZoneEntryArray< EntryT >::_size |
Definition at line 118 of file ZoneTypes.h.
| int lsst::ap::ZoneEntryArray< EntryT >::_zone |
Definition at line 120 of file ZoneTypes.h.
1.8.5