Base class for an asset caching strategy. Specializations of this class could apply one of more algorithms based on the information provided through the CYIAsset interface. For example, an algorithm could be created so that the combined resource consumption for managed assets do not exceed a maximum value.
#include <asset/YiAssetCacheStrategy.h>
Public Member Functions | |
| CYIAssetCacheStrategy () | |
| virtual | ~CYIAssetCacheStrategy () |
| virtual void | Execute (const std::list< std::shared_ptr< CYIAsset >> &cache)=0 |
|
inline |
|
inlinevirtual |
|
pure virtual |
Executes the cache strategy; derived classes must implement this method.