|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
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