INFO804 Introduction à l'informatique graphique
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
rt::Image2D< TValue >::GenericIterator< TAccessor > Struct Template Reference
Inheritance diagram for rt::Image2D< TValue >::GenericIterator< TAccessor >:

Public Types

typedef TAccessor Accessor
 
typedef Accessor::Argument ImageValue
 
typedef Accessor::Value Value
 
typedef Accessor::Reference Reference
 

Public Member Functions

 GenericIterator (Image2D< ImageValue > &image, int x, int y)
 
Value operator* () const
 
Reference operator* ()
 

Detailed Description

template<typename TValue>
template<typename TAccessor>
struct rt::Image2D< TValue >::GenericIterator< TAccessor >

Definition at line 75 of file Image2D.h.

Member Typedef Documentation

◆ Accessor

template<typename TValue >
template<typename TAccessor >
typedef TAccessor rt::Image2D< TValue >::GenericIterator< TAccessor >::Accessor

Definition at line 76 of file Image2D.h.

◆ ImageValue

template<typename TValue >
template<typename TAccessor >
typedef Accessor::Argument rt::Image2D< TValue >::GenericIterator< TAccessor >::ImageValue

Definition at line 77 of file Image2D.h.

◆ Reference

template<typename TValue >
template<typename TAccessor >
typedef Accessor::Reference rt::Image2D< TValue >::GenericIterator< TAccessor >::Reference

Definition at line 79 of file Image2D.h.

◆ Value

template<typename TValue >
template<typename TAccessor >
typedef Accessor::Value rt::Image2D< TValue >::GenericIterator< TAccessor >::Value

Definition at line 78 of file Image2D.h.

Constructor & Destructor Documentation

◆ GenericIterator()

template<typename TValue >
template<typename TAccessor >
rt::Image2D< TValue >::GenericIterator< TAccessor >::GenericIterator ( Image2D< ImageValue > &  image,
int  x,
int  y 
)
inline

Definition at line 81 of file Image2D.h.

82 : Container::iterator( image.m_data.begin() + image.index( x, y ) ) {}

Member Function Documentation

◆ operator*() [1/2]

template<typename TValue >
template<typename TAccessor >
Reference rt::Image2D< TValue >::GenericIterator< TAccessor >::operator* ( )
inline

Definition at line 89 of file Image2D.h.

90 { return Accessor::access( Container::iterator::operator*() ); }

◆ operator*() [2/2]

template<typename TValue >
template<typename TAccessor >
Value rt::Image2D< TValue >::GenericIterator< TAccessor >::operator* ( ) const
inline

Definition at line 85 of file Image2D.h.

86 { return Accessor::access( Container::iterator::operator*() ); }

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