Aleph-w  1.9
General library for algorithms and data structures
RingFileCache< T >::Pointer Class Reference

#include <ringfilecache.H>

Public Member Functions

 Pointer (const RingFileCache &cache, const size_t __pos=0)
 
Pointer operator++ () noexcept
 
Pointer operator++ (int) noexcept
 
Pointer operator-- () noexcept
 
Pointer operator-- (int) noexcept
 
Pointeroperator+= (const long val) noexcept
 
Pointeroperator-= (const long val) noexcept
 
Pointer operator+ (const long val) const noexcept
 
Pointer operator- (const long val) const noexcept
 
size_t get_pos_respect_to_head () const noexcept
 
size_t get_pos () const noexcept
 

Friends

class RingFileCache
 

Detailed Description

template<typename T>
class RingFileCache< T >::Pointer

Defines a pointer to a specific location in the cache.

Cache entries could be read or written through a pointer object

Constructor & Destructor Documentation

◆ Pointer()

template<typename T>
RingFileCache< T >::Pointer::Pointer ( const RingFileCache cache,
const size_t  __pos = 0 
)
inline

Construct a pointer to current head (oldest item in the cache)

Parameters
[in]cachethe cache
[in]__posposition respect the current head of cache

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

Leandro Rabindranath León