libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::cache::factory_base< Key, Data > Struct Template Referenceabstract

A simple factory class that allows us to tell the cache how a value is made for a particular key. More...

#include <cache.hpp>

Public Types

typedef Key key_type
 
typedef Data value_type
 

Public Member Functions

virtual value_type __fastcall make (const key_type &) const =0
 
virtual ~factory_base ()
 

Detailed Description

template<typename Key, typename Data>
struct jmmcg::cache::factory_base< Key, Data >

A simple factory class that allows us to tell the cache how a value is made for a particular key.

Definition at line 130 of file cache.hpp.

Member Typedef Documentation

◆ key_type

template<typename Key, typename Data>
typedef Key jmmcg::cache::factory_base< Key, Data >::key_type

Definition at line 131 of file cache.hpp.

◆ value_type

template<typename Key, typename Data>
typedef Data jmmcg::cache::factory_base< Key, Data >::value_type

Definition at line 132 of file cache.hpp.

Constructor & Destructor Documentation

◆ ~factory_base()

template<typename Key, typename Data>
virtual jmmcg::cache::factory_base< Key, Data >::~factory_base ( )
inlinevirtual

Definition at line 135 of file cache.hpp.

Member Function Documentation

◆ make()

template<typename Key, typename Data>
virtual value_type __fastcall jmmcg::cache::factory_base< Key, Data >::make ( const key_type ) const
pure virtual

Implemented in my_factory.


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