TuttleOFX  1
tuttle::host::memory::IMemoryCache Class Reference

#include <IMemoryCache.hpp>

Inheritance diagram for tuttle::host::memory::IMemoryCache:

Public Member Functions

virtual ~IMemoryCache ()=0
virtual void put (const std::string &identifier, const double time, CACHE_ELEMENT pData)=0
virtual CACHE_ELEMENT get (const std::string &identifier, const double time) const =0
virtual CACHE_ELEMENT getUnusedWithSize (const std::size_t requestedSize) const =0
virtual std::size_t size () const =0
virtual bool empty () const =0
virtual bool inCache (const CACHE_ELEMENT &) const =0
virtual double getTime (const CACHE_ELEMENT &) const =0
virtual const std::string & getPluginName (const CACHE_ELEMENT &) const =0
virtual bool remove (const CACHE_ELEMENT &)=0
virtual void clearUnused ()=0
virtual void clearAll ()=0
virtual std::ostream & outputStream (std::ostream &os) const =0

Private Types

typedef IMemoryCache This

Friends

std::ostream & operator<< (std::ostream &os, const This &v)

Detailed Description

Definition at line 49 of file IMemoryCache.hpp.


Member Typedef Documentation

Reimplemented in tuttle::host::memory::MemoryCache.

Definition at line 51 of file IMemoryCache.hpp.


Constructor & Destructor Documentation

tuttle::host::memory::IMemoryCache::~IMemoryCache ( ) [pure virtual]

Definition at line 38 of file IMemoryCache.cpp.


Member Function Documentation

virtual void tuttle::host::memory::IMemoryCache::clearAll ( ) [pure virtual]
virtual bool tuttle::host::memory::IMemoryCache::empty ( ) const [pure virtual]
virtual CACHE_ELEMENT tuttle::host::memory::IMemoryCache::get ( const std::string &  identifier,
const double  time 
) const [pure virtual]
virtual const std::string& tuttle::host::memory::IMemoryCache::getPluginName ( const CACHE_ELEMENT ) const [pure virtual]
virtual double tuttle::host::memory::IMemoryCache::getTime ( const CACHE_ELEMENT ) const [pure virtual]
virtual CACHE_ELEMENT tuttle::host::memory::IMemoryCache::getUnusedWithSize ( const std::size_t  requestedSize) const [pure virtual]
virtual bool tuttle::host::memory::IMemoryCache::inCache ( const CACHE_ELEMENT ) const [pure virtual]
virtual std::ostream& tuttle::host::memory::IMemoryCache::outputStream ( std::ostream &  os) const [pure virtual]
virtual void tuttle::host::memory::IMemoryCache::put ( const std::string &  identifier,
const double  time,
CACHE_ELEMENT  pData 
) [pure virtual]
Todo:
tuttle: use key here, instead of (name, time)

Implemented in tuttle::host::memory::MemoryCache.

Referenced by tuttle::host::ImageEffectNode::process().

virtual bool tuttle::host::memory::IMemoryCache::remove ( const CACHE_ELEMENT ) [pure virtual]
virtual std::size_t tuttle::host::memory::IMemoryCache::size ( ) const [pure virtual]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const This v 
) [friend]

Definition at line 40 of file IMemoryCache.cpp.


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