24 for (
const auto& data : std::as_const(_parseResults)) {
28 _parseResults.clear();
35 QMutexLocker lock(&_processMutex);
36 return _parseResults.value(
id)->_data;
40 QMutexLocker lock(&_processMutex);
41 return _parseResults.contains(
id);
50 QMutexLocker lock(&_processMutex);
53#if QT_VERSION <= QT_VERSION_CHECK(6, 0, 0)
54 _processTime.erase(_processTime.begin());
56 _processTime.erase(_processTime.cbegin());
65 _processTime.insert(
static_cast<int>(time(
nullptr)), pkg.
hdr.
hash);
const Package * getPkgFromArhive(const unsigned int &id) const
getPkgFromArhive This method return pointer to package from archive.
void processed(const Package &pkg, char processResult)
processed This method add a package to the archive.
bool contains(const unsigned int &id) const
contains This method checks if the package contains in this container by id.
The Package struct. This is base structure for transporting data by network between QH nodes....
Header hdr
hdr This is header of package. For more information see the Header struct.
#define PACKAGE_CACHE_SIZE
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
The PackaData struct - private data of packages.