• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • edu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • extragear
  • edu
  • kstars
  • kstars
  • hips
pixcache.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015-2017, Pavel Mraz
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License
6  as published by the Free Software Foundation; either version 2
7  of the License, or (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 
19 #pragma once
20 
21 #include "hips.h"
22 
23 #include <QCache>
24 
25 class PixCache
26 {
27 public:
28  PixCache() = default;
29 
30  void add(pixCacheKey_t &key, pixCacheItem_t *item, int cost);
31  pixCacheItem_t *get(pixCacheKey_t &key);
32  void setMaxCost(int maxCost);
33  void printCache();
34  int used();
35 
36 private:
37  QCache <pixCacheKey_t, pixCacheItem_t> m_cache;
38 };
39 
PixCache::PixCache
PixCache()=default
PixCache::add
void add(pixCacheKey_t &key, pixCacheItem_t *item, int cost)
Definition: pixcache.cpp:46
PixCache::printCache
void printCache()
Definition: pixcache.cpp:63
QCache< pixCacheKey_t, pixCacheItem_t >
pixCacheItem_t
Definition: hips.h:38
PixCache::setMaxCost
void setMaxCost(int maxCost)
Definition: pixcache.cpp:58
pixCacheKey_t
Definition: hips.h:53
PixCache::used
int used()
Definition: pixcache.cpp:69
hips.h
PixCache
Definition: pixcache.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 15 2019 03:10:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

edu API Reference

Skip menu "edu API Reference"
  •     core
  • kstars

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal