Kstars
starblockfactory.cpp
57 // qCDebug(KSTARS) << "Recycling block with drawID =" << last->drawID << "and current drawID =" << drawID;
122 bool StarBlockFactory::markNext(std::shared_ptr<StarBlock>& after, std::shared_ptr<StarBlock>& block)
bool markFirst(std::shared_ptr< StarBlock > &block)
Mark a StarBlock as most recently used and sync its drawID with the current drawID.
Definition: starblockfactory.cpp:82
std::shared_ptr< StarBlock > getBlock()
Return a StarBlock available for use.
Definition: starblockfactory.cpp:42
Definition: starblock.h:42
void printStructure() const
Prints the structure of the cache, for debugging.
Definition: starblockfactory.cpp:257
bool markNext(std::shared_ptr< StarBlock > &after, std::shared_ptr< StarBlock > &block)
Rank a given StarBlock after another given StarBlock in the LRU list and sync its drawID with the cur...
Definition: starblockfactory.cpp:122
int freeUnused()
Frees all StarBlocks that are not used in this draw cycle.
Definition: starblockfactory.cpp:287
~StarBlockFactory()
Destructor Deletes the linked list that maintains the Cache, sets the pointer to nullptr.
Definition: starblockfactory.cpp:35
A factory that creates StarBlocks and recycles them in an LRU Cache.
Definition: starblockfactory.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.