olp-cpp-sdk  1.22.0
Public Member Functions | Protected Attributes | List of all members
olp::utils::LruCache< Key, Value, CacheCostFunc, Compare, Alloc >::ValueType Class Reference

A type of objects to be stored. More...

#include <LruCache.h>

Inheritance diagram for olp::utils::LruCache< Key, Value, CacheCostFunc, Compare, Alloc >::ValueType:
Inheritance graph
[legend]

Public Member Functions

const Key & key () const
 Gets the key of the ValueType object. More...
 
const Value & value () const
 Gets the value of the ValueType object. More...
 

Protected Attributes

MapType::const_iterator m_it
 A typename of the map constant iterator.
 

Detailed Description

template<typename Key, typename Value, typename CacheCostFunc = CacheCost<Value>, typename Compare = std::less<Key>, template< typename > class Alloc = std::allocator>
class olp::utils::LruCache< Key, Value, CacheCostFunc, Compare, Alloc >::ValueType

A type of objects to be stored.

Each object is defined by a key-value pair.

Member Function Documentation

◆ key()

template<typename Key , typename Value , typename CacheCostFunc , typename Compare , template< typename > class Alloc>
const Key & olp::utils::LruCache< Key, Value, CacheCostFunc, Compare, Alloc >::ValueType::key
inline

Gets the key of the ValueType object.

Returns
The key of the ValueType object.

◆ value()

template<typename Key , typename Value , typename CacheCostFunc , typename Compare , template< typename > class Alloc>
const Value & olp::utils::LruCache< Key, Value, CacheCostFunc, Compare, Alloc >::ValueType::value
inline

Gets the value of the ValueType object.

Returns
The value of the ValueType object.

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