nmn::Cache< Key, Element, UserData, CachePolicy > Class Template Reference

#include <cache.h>

List of all members.

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, DataContainer
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

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
class nmn::Cache< Key, Element, UserData, CachePolicy >


Member Typedef Documentation

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
typedef Container::const_iterator nmn::Cache< Key, Element, UserData, CachePolicy >::ConstIterator [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
typedef std::map< Key, Data > nmn::Cache< Key, Element, UserData, CachePolicy >::Container [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
typedef Element nmn::Cache< Key, Element, UserData, CachePolicy >::ElementType

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
typedef Container::iterator nmn::Cache< Key, Element, UserData, CachePolicy >::Iterator [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
typedef Key nmn::Cache< Key, Element, UserData, CachePolicy >::KeyType


Constructor & Destructor Documentation

template<typename Key, typename Element, typename UserData, typename CachePolicy>
nmn::Cache< Key, Element, UserData, CachePolicy >::Cache (  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
nmn::Cache< Key, Element, UserData, CachePolicy >::Cache ( const Cache< Key, Element, UserData, CachePolicy > &  cache  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
nmn::Cache< Key, Element, UserData, CachePolicy >::~Cache (  ) 

not yet documented


Member Function Documentation

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::clear (  )  [protected]

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::deleteElement ( Element &  element,
const IsNotAPointerTraits  traits 
) [protected]

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::deleteElement ( Element &  element,
const IsAPointerTraits  traits 
) [protected]

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::download (  )  [protected]

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
SearchIssue< Element > nmn::Cache< Key, Element, UserData, CachePolicy >::find ( const Key &  key  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
Element nmn::Cache< Key, Element, UserData, CachePolicy >::get ( const Key &  key  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
const unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::getCurrentSize (  )  const

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
const unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::getDownloadSize (  )  const

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
const unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::getMaxSize (  )  const

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::invalidate ( Iterator it  )  [protected]

not yet documented

template<>
Polynomius nmn::Cache< BasisFunction::Key, Polynomius, BasisFunction >::load ( const BasisFunction::Key key  ) 

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
Element nmn::Cache< Key, Element, UserData, CachePolicy >::load ( const Key &  key  )  [protected]

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::operator= ( const Cache< Key, Element, UserData, CachePolicy > &  cache  )  [protected]

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::refresh ( Iterator it  )  [protected]

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::setDownloadSize ( const unsigned int &  size  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::setMaxSize ( const unsigned int &  size  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::setUserData ( UserData *  user_data  ) 

not yet documented

template<typename Key, typename Element, typename UserData, typename CachePolicy>
void nmn::Cache< Key, Element, UserData, CachePolicy >::upload ( const Key &  key,
const Element &  element 
) [protected]

not yet documented


Member Data Documentation

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
CachePolicyInterface* nmn::Cache< Key, Element, UserData, CachePolicy >::_cache_policy [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
Container nmn::Cache< Key, Element, UserData, CachePolicy >::_cached_elements [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::_current_size [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::_download_size [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
unsigned int nmn::Cache< Key, Element, UserData, CachePolicy >::_max_size [protected]

template<typename Key, typename Element, typename UserData = void, typename CachePolicy = LruCachePolicy>
UserData* nmn::Cache< Key, Element, UserData, CachePolicy >::_user_data [protected]


The documentation for this class was generated from the following files:
Generated on Sun Nov 18 21:29:38 2007 for nmnurbs by  doxygen 1.4.7