CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
Classes | Public Member Functions | List of all members
CLRX::SimpleCache< K, V > Class Template Reference

Simple cache for object. object class should have a weight method. More...

#include <Containers.h>

Public Member Functions

 SimpleCache (size_t _maxWeight)
 constructor
 
V * use (const K &key)
 use key - get value
 
bool hasKey (const K &key)
 return true if key exists
 
void put (const K &key, const V &value)
 put value
 

Detailed Description

template<typename K, typename V>
class CLRX::SimpleCache< K, V >

Simple cache for object. object class should have a weight method.

Simple cache


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