kstars
starblockfactory.h
Go to the documentation of this file.
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
~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
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
int getBlockCount()
Returns the number of StarBlocks currently produced.
Definition: starblockfactory.h:80
void printStructure()
Prints the structure of the cache, for debugging.
Definition: starblockfactory.cpp:244
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.