kstars
starblocklist.cpp
Go to the documentation of this file.
46 kDebug() << "ERROR: Trying to release a block which is not the last block! Trixel = " << trixel << endl;
89 Trixel trixelId = trixel; //( ( trixel < 256 ) ? ( trixel + 256 ) : ( trixel - 256 ) ); // Trixel ID on datafile is assigned differently
99 kDebug() << "Reading trixel" << trixel << ", id on disk =" << trixelId << ", currently nStars =" << nStars
100 << ", record count =" << dSReader->getRecordCount( trixelId ) << ", first block = " << blocks[0]->getStarCount()
Stores and manages unnamed stars, most of which are dynamically loaded into memory.
Definition: deepstarcomponent.h:49
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
FILE * getFileHandle()
Get the file handle corresponding to the currently open file.
Definition: binfilehelper.h:132
This class provides utility functions to handle binary data files in the format prescribed by KStars...
Definition: binfilehelper.h:52
A factory that creates StarBlocks and recycles them in an LRU Cache.
Definition: starblockfactory.h:32
void setStaticBlock(StarBlock *block)
Sets the first StarBlock in the list to point to the given StarBlock.
Definition: starblocklist.cpp:151
static int unsigned_KDE_fseek(FILE *stream, quint32 offset, int whence)
Wrapper around fseek for large offsets.
Definition: binfilehelper.cpp:259
int getStarCount()
Return the number of stars currently filled in this StarBlock.
Definition: starblock.h:110
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 releaseBlock(StarBlock *block)
Drops the StarBlock with the given pointer from the list.
Definition: starblocklist.cpp:43
bool fillToMag(float maglim)
Ensures that the list is loaded with stars to given magnitude limit.
Definition: starblocklist.cpp:66
long getOffset(int id)
Returns the offset in the file corresponding to the given index ID.
Definition: binfilehelper.h:139
static void byteSwap(deepStarData *stardata)
Definition: deepstarcomponent.cpp:453
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.