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 
13 class PixCache
14 {
15 public:
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 
24 private:
26 };
27 
KGuiItem add()
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.