For each product requested, it keeps the latest product in memory and serves it up as often as needed.
Public Member Functions | |
code::SmartPtr< code::DataType > | createObject (const code::Index::Record &rec) |
Static Public Member Functions | |
static CachedReader & | instance () |
Classes | |
struct | CacheEntry |
code::SmartPtr<code::DataType> w2kmeans::CachedReader::createObject | ( | const code::Index::Record & | rec | ) |
static CachedReader& w2kmeans::CachedReader::instance | ( | ) | [static] |