Public Member Functions | Private Attributes
Cache Class Reference

#include <Cache.h>

List of all members.

Public Member Functions

 Cache ()
T & get (string key)
bool hasKey (string key)
void purge ()
void put (string key, T value)
virtual ~Cache ()

Private Attributes

queue< string > keyQueue
map< string, T > keyToValue

Detailed Description

Definition at line 13 of file Cache.h.


Constructor & Destructor Documentation

Cache::Cache ( ) [inline]

Definition at line 19 of file Cache.h.

virtual Cache::~Cache ( ) [inline, virtual]

Definition at line 22 of file Cache.h.


Member Function Documentation

T& Cache::get ( string  key) [inline]

Definition at line 43 of file Cache.h.

bool Cache::hasKey ( string  key) [inline]

Definition at line 38 of file Cache.h.

void Cache::purge ( ) [inline]

Definition at line 48 of file Cache.h.

void Cache::put ( string  key,
value 
) [inline]

Definition at line 27 of file Cache.h.


Member Data Documentation

queue<string> Cache::keyQueue [private]

Definition at line 17 of file Cache.h.

map<string, T> Cache::keyToValue [private]

Definition at line 16 of file Cache.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30