#include <cache.h>
Public Types | |
typedef Element | ElementType |
typedef Key | KeyType |
Public Member Functions | |
Cache () | |
not yet documented | |
Cache (const Cache< Key, Element, UserData, CachePolicy > &cache) | |
not yet documented | |
~Cache () | |
not yet documented | |
SearchIssue< Element > | find (const Key &key) |
not yet documented | |
Element | get (const Key &key) |
not yet documented | |
void | setMaxSize (const unsigned int &size) |
not yet documented | |
const unsigned int | getMaxSize () const |
not yet documented | |
void | setDownloadSize (const unsigned int &size) |
not yet documented | |
const unsigned int | getDownloadSize () const |
not yet documented | |
const unsigned int | getCurrentSize () const |
not yet documented | |
void | setUserData (UserData *user_data) |
not yet documented | |
template<> | |
Polynomius | load (const BasisFunction::Key &key) |
Protected Types | |
typedef std::map< Key, Data > | Container |
typedef Container::iterator | Iterator |
typedef Container::const_iterator | ConstIterator |
Protected Member Functions | |
void | clear () |
not yet documented | |
void | upload (const Key &key, const Element &element) |
not yet documented | |
void | download () |
not yet documented | |
void | refresh (Iterator &it) |
not yet documented | |
Element | load (const Key &key) |
void | operator= (const Cache< Key, Element, UserData, CachePolicy > &cache) |
not yet documented | |
void | deleteElement (Element &element, const IsAPointerTraits traits) |
not yet documented | |
void | deleteElement (Element &element, const IsNotAPointerTraits traits) |
not yet documented | |
void | invalidate (Iterator &it) |
not yet documented | |
Protected Attributes | |
Container | _cached_elements |
CachePolicyInterface * | _cache_policy |
unsigned int | _max_size |
UserData * | _user_data |
unsigned int | _current_size |
unsigned int | _download_size |
Classes | |
struct | Data |
typedef Container::const_iterator nmn::Cache< Key, Element, UserData, CachePolicy >::ConstIterator [protected] |
typedef std::map< Key, Data > nmn::Cache< Key, Element, UserData, CachePolicy >::Container [protected] |
typedef Element nmn::Cache< Key, Element, UserData, CachePolicy >::ElementType |
typedef Container::iterator nmn::Cache< Key, Element, UserData, CachePolicy >::Iterator [protected] |
typedef Key nmn::Cache< Key, Element, UserData, CachePolicy >::KeyType |
nmn::Cache< Key, Element, UserData, CachePolicy >::Cache | ( | ) |
not yet documented
nmn::Cache< Key, Element, UserData, CachePolicy >::Cache | ( | const Cache< Key, Element, UserData, CachePolicy > & | cache | ) |
not yet documented
nmn::Cache< Key, Element, UserData, CachePolicy >::~Cache | ( | ) |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::clear | ( | ) | [protected] |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::deleteElement | ( | Element & | element, | |
const IsNotAPointerTraits | traits | |||
) | [protected] |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::deleteElement | ( | Element & | element, | |
const IsAPointerTraits | traits | |||
) | [protected] |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::download | ( | ) | [protected] |
not yet documented
SearchIssue< Element > nmn::Cache< Key, Element, UserData, CachePolicy >::find | ( | const Key & | key | ) |
not yet documented
Element nmn::Cache< Key, Element, UserData, CachePolicy >::get | ( | const Key & | key | ) |
not yet documented
const unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::getCurrentSize | ( | ) | const |
not yet documented
const unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::getDownloadSize | ( | ) | const |
not yet documented
const unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::getMaxSize | ( | ) | const |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::invalidate | ( | Iterator & | it | ) | [protected] |
not yet documented
Polynomius nmn::Cache< BasisFunction::Key, Polynomius, BasisFunction >::load | ( | const BasisFunction::Key & | key | ) |
Element nmn::Cache< Key, Element, UserData, CachePolicy >::load | ( | const Key & | key | ) | [protected] |
void nmn::Cache< Key, Element, UserData, CachePolicy >::operator= | ( | const Cache< Key, Element, UserData, CachePolicy > & | cache | ) | [protected] |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::refresh | ( | Iterator & | it | ) | [protected] |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::setDownloadSize | ( | const unsigned int & | size | ) |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::setMaxSize | ( | const unsigned int & | size | ) |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::setUserData | ( | UserData * | user_data | ) |
not yet documented
void nmn::Cache< Key, Element, UserData, CachePolicy >::upload | ( | const Key & | key, | |
const Element & | element | |||
) | [protected] |
not yet documented
CachePolicyInterface* nmn::Cache< Key, Element, UserData, CachePolicy >::_cache_policy [protected] |
Container nmn::Cache< Key, Element, UserData, CachePolicy >::_cached_elements [protected] |
unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::_current_size [protected] |
unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::_download_size [protected] |
unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::_max_size [protected] |
UserData* nmn::Cache< Key, Element, UserData, CachePolicy >::_user_data [protected] |