Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::detail::cache< Key, Value, CacheSize > Class Template Reference
Inheritance diagram for nana::detail::cache< Key, Value, CacheSize >:
nana::noncopyable

Public Types

typedef Key key_type
 
typedef Value value_type
 
typedef std::pair< key_type,
value_type
pair_type
 
typedef std::size_t size_type
 

Public Member Functions

 cache ()
 
 ~cache ()
 
bool insert (key_type k, value_type v)
 
value_typeget (key_type k)
 

Member Typedef Documentation

template<typename Key, typename Value, std::size_t CacheSize>
typedef Key nana::detail::cache< Key, Value, CacheSize >::key_type
template<typename Key, typename Value, std::size_t CacheSize>
typedef std::pair<key_type, value_type> nana::detail::cache< Key, Value, CacheSize >::pair_type
template<typename Key, typename Value, std::size_t CacheSize>
typedef std::size_t nana::detail::cache< Key, Value, CacheSize >::size_type
template<typename Key, typename Value, std::size_t CacheSize>
typedef Value nana::detail::cache< Key, Value, CacheSize >::value_type

Constructor & Destructor Documentation

template<typename Key, typename Value, std::size_t CacheSize>
nana::detail::cache< Key, Value, CacheSize >::cache ( )
inline
template<typename Key, typename Value, std::size_t CacheSize>
nana::detail::cache< Key, Value, CacheSize >::~cache ( )
inline

Member Function Documentation

template<typename Key, typename Value, std::size_t CacheSize>
value_type* nana::detail::cache< Key, Value, CacheSize >::get ( key_type  k)
inline
template<typename Key, typename Value, std::size_t CacheSize>
bool nana::detail::cache< Key, Value, CacheSize >::insert ( key_type  k,
value_type  v 
)
inline