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