QcSignalChunks Class
The chunks the signals of the circuits concern (decisions E-376, E-378, E-410), for QcChunkLoading: the chunks signals wait for that are not loaded, the chunks of signals waiting for one on its way, the chunks with signals on their way, and the unneeded chunks a signal passes through, held for at most the time of a load ticket. More...
| Header: | #include <server/chunks/QcSignalChunks.h> |
Public Functions
| QSet<QcChunkPos> | chunksWithSignals() const |
| void | forget(QcChunkPos chunk) |
| QSet<QcChunkPos> | passing(const QSet<QcChunkPos> &candidates, const QSet<QcChunkPos> &circuitChunks) |
| QSet<QcChunkPos> | targets() const |
| QSet<QcChunkPos> | waitingChunks() const |
Detailed Description
Member Function Documentation
QSet<QcChunkPos> QcSignalChunks::chunksWithSignals() const
Returns the chunks with signals on their way that the circuits look at next.
void QcSignalChunks::forget(QcChunkPos chunk)
chunk left the world: back in it, a signal it took along is held again for a ticket's time.
QSet<QcChunkPos> QcSignalChunks::passing(const QSet<QcChunkPos> &candidates, const QSet<QcChunkPos> &circuitChunks)
Returns the chunks of candidates (unneeded, about to leave) that a signal passes through (changes, scheduled ticks, block updates) and that the circuits kept (circuitChunks, at the last pass) or that were held already: they stay for at most the time of a ticket (decision E-410).
QSet<QcChunkPos> QcSignalChunks::targets() const
Returns the chunks signals wait for that are not loaded.
QSet<QcChunkPos> QcSignalChunks::waitingChunks() const
Returns the chunks of signals that wait for a chunk on its way (they stay, decision E-376).