DGtal 1.4.0
Loading...
Searching...
No Matches
DGtal::concepts::CImageCacheReadPolicy< T > Struct Template Reference

Aim: Defines the concept describing a cache read policy. More...

#include <DGtal/images/CImageCacheReadPolicy.h>

Public Types

typedef T::ImageContainer ImageContainer
 

Public Member Functions

 BOOST_CONCEPT_USAGE (CImageCacheReadPolicy)
 
void checkConstConstraints () const
 

Private Attributes

myT
 
ImageContainermyIC
 
T::Point myPoint
 
T::Domain myDomain
 

Detailed Description

template<typename T>
struct DGtal::concepts::CImageCacheReadPolicy< T >

Aim: Defines the concept describing a cache read policy.

Description of concept 'CImageCacheReadPolicy'

Refinement of

Associated types

  • ImageContainer : type of the image in the cache, model of concept CImage
  • Point : type of the image point
  • Domain : type of the image domain, model of concept CDomain

Notation

  • X : A type that is a model of CImageCacheReadPolicy
  • x : object of type X
  • p : object of type Point
  • d : object of type Domain

Definitions

Valid expressions and semantics

Name Expression Type requirements Return type Precondition Semantics Post condition Complexity
Get page x.getPage(p) p of type Point ImageContainer p should be in a domain of the cache get the alias on the image that contains the point p
Get page x.getPage(d) d of type Domain ImageContainer d should be in a domain of the cache get the alias on the image that matchs the domain d
Get page to detach x.getPageToDetach() ImageContainer get the alias on the image that we have to detach
Update cache x.updateCache(d) d of type Domain update the cache with a new Domain d
Clear cache x.clearCache() clear the cache

Invariants

Models

ImageCacheReadPolicyLAST, ImageCacheReadPolicyFIFO

Notes

Template Parameters
Tthe type that should be a model of CImageCacheReadPolicy.

Definition at line 93 of file CImageCacheReadPolicy.h.

Member Typedef Documentation

◆ ImageContainer

template<typename T >
typedef T::ImageContainer DGtal::concepts::CImageCacheReadPolicy< T >::ImageContainer

Definition at line 98 of file CImageCacheReadPolicy.h.

Member Function Documentation

◆ BOOST_CONCEPT_USAGE()

◆ checkConstConstraints()

template<typename T >
void DGtal::concepts::CImageCacheReadPolicy< T >::checkConstConstraints ( ) const
inline

Field Documentation

◆ myDomain

template<typename T >
T::Domain DGtal::concepts::CImageCacheReadPolicy< T >::myDomain
private

◆ myIC

◆ myPoint

template<typename T >
T::Point DGtal::concepts::CImageCacheReadPolicy< T >::myPoint
private

◆ myT

template<typename T >
T DGtal::concepts::CImageCacheReadPolicy< T >::myT
private

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