You.i Engine
CYIAssetCacheStrategy Class Referenceabstract

Detailed Description

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
 

Constructor & Destructor Documentation

CYIAssetCacheStrategy::CYIAssetCacheStrategy ( )
inline
virtual CYIAssetCacheStrategy::~CYIAssetCacheStrategy ( )
inlinevirtual

Member Function Documentation

virtual void CYIAssetCacheStrategy::Execute ( const std::list< std::shared_ptr< CYIAsset >> &  cache)
pure virtual

Executes the cache strategy; derived classes must implement this method.


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