This is the concrete factory for the LFU cache policy.
More...
#include <LFUCachePolicyFactory.h>
|
const std::string & | getKey () const |
| It returns the factory key associated to the concreate factory.
|
|
const std::string & | getType () const |
| Returns the type (name) of this factory.
|
|
| ~LFUCachePolicyFactory () |
| Virtual destructor.
|
|
|
static void | finalize () |
| It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ...
|
|
static const factory_type * | find (const std::string &factoryKey) |
|
static dictionary_type & | getDictionary () |
| It returns a reference to the internal dictionary of concrete factories.
|
|
static void | initialize () |
| It initializes the factory: the singleton instance will be registered in the abstract factory ...
|
|
static AbstractCachePolicy * | make () |
| It creates and returns default cache policy.
|
|
static AbstractCachePolicy * | make (const std::string &cpType) |
| It creates a cache policy with the proper type.
|
|
|
std::string | m_factoryKey |
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
|
|
This is the concrete factory for the LFU cache policy.
- See also
- te::graph::AbstractCachePolicyFactory
Definition at line 44 of file LFUCachePolicyFactory.h.
◆ dictionary_type
◆ factory_type
◆ ~LFUCachePolicyFactory()
te::graph::LFUCachePolicyFactory::~LFUCachePolicyFactory |
( |
| ) |
|
|
inline |
◆ LFUCachePolicyFactory()
te::graph::LFUCachePolicyFactory::LFUCachePolicyFactory |
( |
| ) |
|
|
protected |
◆ build()
◆ finalize()
static void te::graph::LFUCachePolicyFactory::finalize |
( |
| ) |
|
|
static |
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ...
◆ find()
◆ getDictionary()
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
- Returns
- A reference to the internal dictionary.
Definition at line 106 of file AbstractFactory.h.
◆ getKey()
It returns the factory key associated to the concreate factory.
- Returns
- The factory key associated to the concreate factory.
Definition at line 84 of file AbstractFactory.h.
◆ getType()
const std::string & te::graph::LFUCachePolicyFactory::getType |
( |
| ) |
const |
|
virtual |
◆ initialize()
static void te::graph::LFUCachePolicyFactory::initialize |
( |
| ) |
|
|
static |
It initializes the factory: the singleton instance will be registered in the abstract factory ...
◆ make() [1/2]
It creates and returns default cache policy.
- Returns
- A default cache policy
- Note
- The caller will take the ownership of the returned pointer.
◆ make() [2/2]
static AbstractCachePolicy * te::graph::AbstractCachePolicyFactory::make |
( |
const std::string & |
cpType | ) |
|
|
staticinherited |
It creates a cache policy with the proper type.
- Parameters
-
cpType | The name of the specific cache policy. |
- Returns
- A specific cache policy
- Note
- The caller will take the ownership of the returned pointer.
◆ m_factoryKey
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
Definition at line 136 of file AbstractFactory.h.
◆ sm_factory
The documentation for this class was generated from the following file: