31 #if defined(ImageCachePolicies_RECURSES) 32 #error Recursive header files inclusion detected in ImageCachePolicies.h 33 #else // defined(ImageCachePolicies_RECURSES) 35 #define ImageCachePolicies_RECURSES 37 #if !defined ImageCachePolicies_h 39 #define ImageCachePolicies_h 44 #include "DGtal/base/Common.h" 45 #include "DGtal/base/ConceptUtils.h" 46 #include "DGtal/images/CImage.h" 47 #include "DGtal/images/CImageFactory.h" 48 #include "DGtal/base/Alias.h" 50 #include "DGtal/images/ImageCache.h" 76 template <
typename TImageContainer,
typename TImageFactory>
181 template <
typename TImageContainer,
typename TImageFactory>
285 template <
typename TImageContainer,
typename TImageFactory>
361 template <
typename TImageContainer,
typename TImageFactory>
425 #include "DGtal/images/ImageCachePolicies.ih" 430 #endif // !defined ImageCachePolicies_h 432 #undef ImageCachePolicies_RECURSES 433 #endif // else defined(ImageCachePolicies_RECURSES)
ImageFactory * myImageFactory
Alias on the image factory.
HyperRectDomain< Space > Domain
TImageContainer::Point Point
TImageContainer ImageContainer
Aim: implements a 'WB (Write-back or Write-behind)' write policy cache.
void updateCache(const Domain &aDomain)
ImageFactory * myImageFactory
Alias on the image factory.
Aim: implements a 'LAST' read policy cache.
TImageFactory ImageFactory
TImageContainer::Domain Domain
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
ImageCacheWritePolicyWB & operator=(const ImageCacheWritePolicyWB &other)
void updateCache(const Domain &aDomain)
ImageCacheReadPolicyFIFO(Alias< ImageFactory > anImageFactory, int aFIFOSizeMax=10)
TImageContainer::Domain Domain
void writeInPage(ImageContainer *anImageContainer, const Point &aPoint, const Value &aValue)
ImageFactory * myImageFactory
Alias on the image factory.
ImageCacheWritePolicyWT(Alias< ImageFactory > anImageFactory)
~ImageCacheWritePolicyWT()
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
ImageContainer * getPageToDetach()
ImageContainer * getPage(const Point &aPoint)
void flushPage(ImageContainer *anImageContainer)
ImageCacheWritePolicyWT & operator=(const ImageCacheWritePolicyWT &other)
TImageContainer::Point Point
ImageContainer * myCacheImagesPtr
Alias on the images cache.
~ImageCacheReadPolicyFIFO()
TImageContainer::Value Value
TImageContainer::Domain Domain
TImageContainer ImageContainer
ImageCacheReadPolicyLAST(Alias< ImageFactory > anImageFactory)
TImageFactory ImageFactory
Aim: Defines the concept describing an image factory.
~ImageCacheReadPolicyLAST()
Aim: implements a 'WT (Write-through)' write policy cache.
ImageCacheReadPolicyLAST & operator=(const ImageCacheReadPolicyLAST &other)
DGtal is the top-level namespace which contains all DGtal functions and types.
TImageFactory ImageFactory
ImageCacheReadPolicyFIFO & operator=(const ImageCacheReadPolicyFIFO &other)
~ImageCacheWritePolicyWB()
void writeInPage(ImageContainer *anImageContainer, const Point &aPoint, const Value &aValue)
ImageFactory * myImageFactory
Alias on the image factory.
unsigned int myFIFOSizeMax
Size max of the FIFO.
TImageContainer ImageContainer
ImageContainer * getPage(const Point &aPoint)
TImageContainer::Domain Domain
Aim: implements a 'FIFO' read policy cache.
ImageCacheWritePolicyWB(Alias< ImageFactory > anImageFactory)
TImageContainer::Point Point
TImageContainer::Value Value
void flushPage(ImageContainer *anImageContainer)
ImageContainer * getPageToDetach()
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
std::deque< ImageContainer * > myFIFOCacheImages
Alias on the images cache.
TImageContainer::Value Value
Aim: Defines the concept describing a read/write image, having an output iterator.
TImageContainer::Point Point
TImageContainer::Value Value
TImageFactory ImageFactory
BOOST_CONCEPT_ASSERT((concepts::CImage< TImageContainer >))
Checking concepts.
TImageContainer ImageContainer