kstars
starblockfactory.cpp
Go to the documentation of this file.
59 // kDebug() << "Recycling block with drawID =" << last->drawID << "and current drawID =" << drawID;
149 kDebug() << "WARNING: Marking block with faint mag = " << block->getFaintMag() << " after block with faint mag "
Holds a block of stars and various peripheral variables to mark its place in data structures...
Definition: starblock.h:38
bool markFirst(StarBlock *block)
Mark a StarBlock as most recently used and sync its drawID with the current drawID.
Definition: starblockfactory.cpp:79
int getBlockCount()
Returns the total number of blocks in theis StarBlockList.
Definition: starblocklist.h:100
~StarBlockFactory()
Destructor Deletes the linked list that maintains the Cache, sets the pointer to NULL.
Definition: starblockfactory.cpp:43
A factory that creates StarBlocks and recycles them in an LRU Cache.
Definition: starblockfactory.h:32
int freeUnused()
Frees all StarBlocks that are not used in this draw cycle.
Definition: starblockfactory.cpp:270
float getFaintMag()
Return the magnitude of the faintest star in this StarBlock.
Definition: starblock.h:104
bool markNext(StarBlock *after, StarBlock *block)
Rank a given StarBlock after another given StarBlock in the LRU list and sync its drawID with the cur...
Definition: starblockfactory.cpp:117
void printStructure()
Prints the structure of the cache, for debugging.
Definition: starblockfactory.cpp:244
StarBlock * block(unsigned int i)
Returns the i-th block in this StarBlockList.
Definition: starblocklist.h:88
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.