26 #ifndef __TERRALIB_GRAPH_INTERNAL_LFUCACHEPOLICY_H
27 #define __TERRALIB_GRAPH_INTERNAL_LFUCACHEPOLICY_H
30 #include "../Config.h"
This class is used to set the main functions of a cache policy.
This class is used to set the main functions of a cache policy.
This class is used to implement the LFU cache policy.
virtual void toRemove(int &value)
Function used to check what index has to be removed from the cache.
virtual ~LFUCachePolicy()
Virtual destructor.
std::map< int, double > m_LFU
virtual void accessed(int value)
Function used to inform that an index was accessed.
LFUCachePolicy()
Default constructor.
virtual void update(int value)
Function used to inform that an index must be updated.
virtual void added(int value)
Function used to add a new index to be controlled.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.