13 #ifndef __IMAGE_CACHE_H__ 14 #define __IMAGE_CACHE_H__ 40 bool loaded()
const {
return !_buffer.isEmpty(); }
41 void setPath(
const QString& val);
43 bool isUsed()
const {
return !_references.empty(); }
47 void set(
const QByteArray& b,
const QByteArray& h) { _buffer = b; _hash = h; }
71 iterator
begin() {
return _items.begin(); }
72 const_iterator
begin()
const {
return _items.begin(); }
73 iterator
end() {
return _items.end(); }
74 const_iterator
end()
const {
return _items.end(); }
void dereference(Image *)
Definition: imageStore.cpp:36
const QByteArray & hash() const
Definition: imageStore.h:46
Definition: imageStore.h:54
QByteArray & buffer()
Definition: imageStore.h:38
iterator begin()
Definition: imageStore.h:71
iterator end()
Definition: imageStore.h:73
QString _path
Definition: imageStore.h:27
QString _type
Definition: imageStore.h:28
ImageStore imageStore
Definition: imageStore.cpp:20
ItemList _items
Definition: imageStore.h:56
bool loaded() const
Definition: imageStore.h:40
Definition: imageStore.h:25
ImageStoreItem(const QString &p)
Definition: imageStore.cpp:26
const QByteArray & buffer() const
Definition: imageStore.h:39
std::vector< ImageStoreItem * > ItemList
Definition: imageStore.h:55
QString hashName() const
Definition: imageStore.cpp:89
QList< Image * > _references
Definition: imageStore.h:26
Definition: aeolus.cpp:26
const_iterator end() const
Definition: imageStore.h:74
QByteArray _buffer
Definition: imageStore.h:29
void load()
Definition: imageStore.cpp:69
const_iterator begin() const
Definition: imageStore.h:72
void reference(Image *)
Definition: imageStore.cpp:46
bool isUsed() const
Definition: imageStore.h:43
QByteArray _hash
Definition: imageStore.h:30
void setPath(const QString &val)
Definition: imageStore.cpp:105
const QString & path() const
Definition: imageStore.h:37
ItemList::const_iterator const_iterator
Definition: imageStore.h:69
ItemList::iterator iterator
Definition: imageStore.h:68