CopperSpice API  1.9.2
QPixmapCache::Key Class Reference

Class can be used for efficient access to the QPixmapCache. More...

Public Methods

 Key ()
 
 Key (const Key &other)
 
 Key (Key &&other)
 
 ~Key ()
 
bool operator!= (const Key &other) const
 
Key & operator= (const Key &other)
 
Key & operator= (Key &&other)
 
bool operator== (const Key &other) const
 
void swap (Key &other)
 

Friends

class QPixmapCache
 

Detailed Description

The QPixmapCache::Key class can be used for efficient access to the QPixmapCache.

Use QPixmapCache::insert() to receive an instance of Key generated by the pixmap cache. You can store the key in your own objects for a very efficient one-to-one object-to-pixmap mapping.

Constructor & Destructor Documentation

QPixmapCache::Key::Key ( )

Constructs an empty QPixmapCache::Key object.

QPixmapCache::Key::Key ( const Key &  other)

Copy constructs a new QPixmapCache::Key from other.

QPixmapCache::Key::Key ( Key &&  other)
inline

Move constructs a new QPixmapCache::Key from other.

QPixmapCache::Key::~Key ( )

Destroys the QPixmapCache::Key.

Method Documentation

bool QPixmapCache::Key::operator!= ( const Key &  other) const
inline

Returns true if other is not equal to this QPixmapCache::Key, otherwise returns false.

Key & QPixmapCache::Key::operator= ( const Key &  other)

Copy assigns from other and returns a reference to this object.

Key & QPixmapCache::Key::operator= ( Key &&  other)
inline

Move assigns from other and returns a reference to this object.

bool QPixmapCache::Key::operator== ( const Key &  other) const

Returns true if other is equal to this QPixmapCache::Key, otherwise returns false.

void QPixmapCache::Key::swap ( Key &  other)
inline

Swaps QPixmapCache::Key other with this QPixmapCache::Key. This operation is very fast and never fails.