|
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
|
Container for a sequence of adjacent zones. More...
#include <ZoneTypes.h>
Public Types | |
| typedef EntryT::Chunk | Chunk |
| typedef EntryT::Data | Data |
| typedef ZoneEntryArray< EntryT > | Zone |
Public Types inherited from lsst.daf.base::Citizen | |
| enum | { magicSentinel = 0xdeadbeef } |
| typedef unsigned long | memId |
| Type of the block's ID. More... | |
| typedef memId(* | memNewCallback )(const memId cid) |
| A function used to register a callback. More... | |
| typedef memId(* | memCallback )(const Citizen *ptr) |
Public Member Functions | |
| ZoneIndex (int const zonesPerDegree, int const zonesPerStripe, int const maxEntriesPerZoneEstimate) | |
| void | clear () |
| Removes all entries from every zone in the index. More... | |
| int | size () const |
| Returns the number of entries in the index. More... | |
| void | setDecBounds (double const minDec, double const maxDec) |
| Sets the range of declination values the index will accept data for. More... | |
| void | computeMatchParams (double const radius) |
| Prepares for distance based matches of the given maximum radius. More... | |
| void | sort () |
| Sorts each zone in the index (on right ascension) More... | |
| template<typename FilterT > | |
| int | pack (FilterT &filter) |
| template<typename FunctionT > | |
| void | apply (FunctionT &function) |
| void | insert (double const ra, double const dec, Data *const data, Chunk *const chunk, int const index) |
| int | getMinZone () const |
| int | getMaxZone () const |
| Zone * | getZone (int const zone) |
| Zone * | firstZone (int const minZone, int const maxZone) |
| Zone * | endZone (int const minZone, int const maxZone) |
| ZoneStripeChunkDecomposition const & | getDecomposition () const |
Public Member Functions inherited from lsst.daf.base::Citizen | |
| Citizen (const std::type_info &) | |
| Citizen (Citizen const &) | |
| ~Citizen () | |
| Citizen & | operator= (Citizen const &) |
| std::string | repr () const |
| Return a string representation of a Citizen. More... | |
| void | markPersistent (void) |
| Mark a Citizen as persistent and not destroyed until process end. More... | |
| memId | getId () const |
| Return the Citizen's ID. More... | |
Private Attributes | |
| ZoneStripeChunkDecomposition | _zsc |
| boost::scoped_array< Zone > | _zones |
| int | _capacity |
| int | _minZone |
| int | _maxZone |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst.daf.base::Citizen | |
| static bool | hasBeenCorrupted () |
| Check all allocated blocks for corruption. More... | |
| static memId | getNextMemId () |
| Return the memId of the next object to be allocated. More... | |
| static int | init () |
| Called once when the memory system is being initialised. More... | |
| static int | census (int, memId startingMemId=0) |
| How many active Citizens are there? More... | |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| Print a list of all active Citizens to stream, sorted by ID. More... | |
| static const std::vector < const Citizen * > * | census () |
| Return a (newly allocated) std::vector of active Citizens sorted by ID. More... | |
| static memId | setNewCallbackId (memId id) |
| Call the NewCallback when block is allocated. More... | |
| static memId | setDeleteCallbackId (memId id) |
| Call the current DeleteCallback when block is deleted. More... | |
| static memNewCallback | setNewCallback (memNewCallback func) |
| Set the NewCallback function. More... | |
| static memCallback | setDeleteCallback (memCallback func) |
| Set the DeleteCallback function. More... | |
| static memCallback | setCorruptionCallback (memCallback func) |
| Set the CorruptionCallback function. More... | |
Container for a sequence of adjacent zones.
Definition at line 199 of file ZoneTypes.h.
| typedef EntryT::Chunk lsst::ap::ZoneIndex< EntryT >::Chunk |
Definition at line 205 of file ZoneTypes.h.
| typedef EntryT::Data lsst::ap::ZoneIndex< EntryT >::Data |
Definition at line 206 of file ZoneTypes.h.
| typedef ZoneEntryArray<EntryT> lsst::ap::ZoneIndex< EntryT >::Zone |
Definition at line 207 of file ZoneTypes.h.
| lsst::ap::ZoneIndex< EntryT >::ZoneIndex | ( | int const | zonesPerDegree, |
| int const | zonesPerStripe, | ||
| int const | maxEntriesPerZoneEstimate | ||
| ) |
Definition at line 189 of file ZoneTypes.cc.
| void lsst::ap::ZoneIndex< EntryT >::apply | ( | FunctionT & | function | ) |
Calls a functor implementing
on every entry in the index.
Definition at line 321 of file ZoneTypes.cc.
| void lsst::ap::ZoneIndex< EntryT >::clear | ( | ) |
| void lsst::ap::ZoneIndex< EntryT >::computeMatchParams | ( | double const | radius | ) |
Prepares for distance based matches of the given maximum radius.
Definition at line 269 of file ZoneTypes.cc.
|
inline |
Returns a pointer to the zone following the last zone in the index within the given id range, or 0 if there is no such zone.
Definition at line 271 of file ZoneTypes.h.
|
inline |
Returns a pointer to the first zone in the index within the given id range, or 0 if there is no such zone.
Definition at line 257 of file ZoneTypes.h.
|
inline |
Definition at line 281 of file ZoneTypes.h.
|
inline |
|
inline |
|
inline |
Returns a pointer to the zone with the given id, or 0 if the requested zone isn't in the index.
Definition at line 246 of file ZoneTypes.h.
|
inline |
Inserts the given data item from the given chunk into the index.
Definition at line 229 of file ZoneTypes.h.
| int lsst::ap::ZoneIndex< EntryT >::pack | ( | FilterT & | filter | ) |
Given a functor that implements
, removes any entry e where filter(e) returns false from the index.
Definition at line 299 of file ZoneTypes.cc.
| void lsst::ap::ZoneIndex< EntryT >::setDecBounds | ( | double const | minDec, |
| double const | maxDec | ||
| ) |
Sets the range of declination values the index will accept data for.
Definition at line 225 of file ZoneTypes.cc.
| int lsst::ap::ZoneIndex< EntryT >::size | ( | ) | const |
| void lsst::ap::ZoneIndex< EntryT >::sort | ( | ) |
|
private |
Definition at line 289 of file ZoneTypes.h.
|
private |
Definition at line 291 of file ZoneTypes.h.
|
private |
Definition at line 290 of file ZoneTypes.h.
|
private |
Definition at line 288 of file ZoneTypes.h.
|
private |
Definition at line 287 of file ZoneTypes.h.
1.8.5