Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRhiBinaryCache< Key, Value, MaxBytes > Struct Template Reference

#include <qrhi_p.h>

Collaboration diagram for QRhiBinaryCache< Key, Value, MaxBytes >:

Public Member Functions

 QRhiBinaryCache (const char *name)
void clear ()
void insertWithCapacityLimit (const Key &key, const Value &value)

Public Attributes

QHash< Key, Value > data
quint32 dataByteSize = 0
const char * name

Detailed Description

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
struct QRhiBinaryCache< Key, Value, MaxBytes >

Definition at line 316 of file qrhi_p.h.

Constructor & Destructor Documentation

◆ QRhiBinaryCache()

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
QRhiBinaryCache< Key, Value, MaxBytes >::QRhiBinaryCache ( const char * name)
inlineexplicit

Definition at line 318 of file qrhi_p.h.

References name.

Member Function Documentation

◆ clear()

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
void QRhiBinaryCache< Key, Value, MaxBytes >::clear ( )
inline

Definition at line 324 of file qrhi_p.h.

Referenced by insertWithCapacityLimit().

Here is the caller graph for this function:

◆ insertWithCapacityLimit()

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
void QRhiBinaryCache< Key, Value, MaxBytes >::insertWithCapacityLimit ( const Key & key,
const Value & value )
inline

Definition at line 330 of file qrhi_p.h.

References clear(), and name.

Here is the call graph for this function:

Member Data Documentation

◆ data

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
QHash<Key, Value> QRhiBinaryCache< Key, Value, MaxBytes >::data

Definition at line 320 of file qrhi_p.h.

◆ dataByteSize

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
quint32 QRhiBinaryCache< Key, Value, MaxBytes >::dataByteSize = 0

Definition at line 321 of file qrhi_p.h.

◆ name

template<typename Key, typename Value, quint32 MaxBytes = QRhiImplementation::MAX_BINARY_CACHE_BYTES>
const char* QRhiBinaryCache< Key, Value, MaxBytes >::name

The documentation for this struct was generated from the following file: