te::graph::FIFOCachePolicyFactory Class Reference

This is the concrete factory for the FIFO cache policy. More...

#include <FIFOCachePolicyFactory.h>

Inheritance diagram for te::graph::FIFOCachePolicyFactory:
te::graph::AbstractCachePolicyFactory te::common::AbstractFactory< AbstractCachePolicy, std::string >

Public Types

typedef FactoryDictionary< AbstractFactory< AbstractCachePolicy, std::string, std::less< std::string > >, std::string, std::less< std::string > > dictionary_type
 
typedef AbstractFactory factory_type
 

Public Member Functions

const std::string & getKey () const
 It returns the factory key associated to the concreate factory. More...
 
const std::string & getType () const
 Returns the type (name) of this factory. More...
 
 ~FIFOCachePolicyFactory ()
 Virtual destructor. More...
 

Static Public Member Functions

static void finalize ()
 It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ... More...
 
static const factory_typefind (const std::string &factoryKey)
 
static dictionary_typegetDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static void initialize ()
 It initializes the factory: the singleton instance will be registered in the abstract factory ... More...
 
static AbstractCachePolicymake ()
 It creates and returns default cache policy. More...
 
static AbstractCachePolicymake (const std::string &cpType)
 It creates a cache policy with the proper type. More...
 

Protected Member Functions

te::graph::AbstractCachePolicybuild ()
 Builds a new cache policy object. More...
 
 FIFOCachePolicyFactory ()
 Default constructor. More...
 

Protected Attributes

std::string m_factoryKey
 The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More...
 

Static Private Attributes

static FIFOCachePolicyFactorysm_factory
 Static attribute used to register this factory. More...
 

Detailed Description

This is the concrete factory for the FIFO cache policy.

See also
te::graph::AbstractCachePolicyFactory

Definition at line 44 of file FIFOCachePolicyFactory.h.

Member Typedef Documentation

typedef FactoryDictionary<AbstractFactory<AbstractCachePolicy , std::string , std::less<std::string > >, std::string , std::less<std::string > > te::common::AbstractFactory< AbstractCachePolicy , std::string , std::less<std::string > >::dictionary_type
inherited

Definition at line 73 of file AbstractFactory.h.

typedef AbstractFactory te::common::AbstractFactory< AbstractCachePolicy , std::string , std::less<std::string > >::factory_type
inherited

Definition at line 77 of file AbstractFactory.h.

Constructor & Destructor Documentation

te::graph::FIFOCachePolicyFactory::~FIFOCachePolicyFactory ( )
inline

Virtual destructor.

Definition at line 49 of file FIFOCachePolicyFactory.h.

te::graph::FIFOCachePolicyFactory::FIFOCachePolicyFactory ( )
protected

Default constructor.

Member Function Documentation

te::graph::AbstractCachePolicy* te::graph::FIFOCachePolicyFactory::build ( )
protectedvirtual

Builds a new cache policy object.

Implements te::common::AbstractFactory< AbstractCachePolicy, std::string >.

static void te::graph::FIFOCachePolicyFactory::finalize ( )
static

It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ...

static const factory_type* te::common::AbstractFactory< AbstractCachePolicy , std::string , std::less<std::string > >::find ( const std::string &  factoryKey)
staticinherited
static dictionary_type& te::common::AbstractFactory< AbstractCachePolicy , std::string , std::less<std::string > >::getDictionary ( )
staticinherited

It returns a reference to the internal dictionary of concrete factories.

The dictionary is a singleton.

Returns
A reference to the internal dictionary.
const std::string & te::common::AbstractFactory< AbstractCachePolicy , std::string , std::less<std::string > >::getKey ( ) const
inherited

It returns the factory key associated to the concreate factory.

Returns
The factory key associated to the concreate factory.
const std::string& te::graph::FIFOCachePolicyFactory::getType ( ) const
virtual

Returns the type (name) of this factory.

Implements te::graph::AbstractCachePolicyFactory.

static void te::graph::FIFOCachePolicyFactory::initialize ( )
static

It initializes the factory: the singleton instance will be registered in the abstract factory ...

static AbstractCachePolicy* te::graph::AbstractCachePolicyFactory::make ( )
staticinherited

It creates and returns default cache policy.

Returns
A default cache policy
Note
The caller will take the ownership of the returned pointer.
static AbstractCachePolicy* te::graph::AbstractCachePolicyFactory::make ( const std::string &  cpType)
staticinherited

It creates a cache policy with the proper type.

Parameters
cpTypeThe name of the specific cache policy.
Returns
A specific cache policy
Note
The caller will take the ownership of the returned pointer.

Member Data Documentation

std::string te::common::AbstractFactory< AbstractCachePolicy , std::string , std::less<std::string > >::m_factoryKey
protectedinherited

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.

FIFOCachePolicyFactory* te::graph::FIFOCachePolicyFactory::sm_factory
staticprivate

Static attribute used to register this factory.

Definition at line 69 of file FIFOCachePolicyFactory.h.


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