Kstars

pixcache.h
1/*
2 SPDX-FileCopyrightText: 2015-2017 Pavel Mraz
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "hips.h"
10
11#include <QCache>
12
13class PixCache
14{
15public:
16 PixCache() = default;
17
18 void add(pixCacheKey_t &key, pixCacheItem_t *item, int cost);
19 pixCacheItem_t *get(pixCacheKey_t &key);
20 void setMaxCost(int maxCost);
21 void printCache();
22 int used();
23
24private:
26};
27
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.