egami
C++ Image Processing program
Public Member Functions | Private Member Functions | Private Attributes | Friends
Image::const_iterator Class Reference

#include <image.hpp>

Collaboration diagram for Image::const_iterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 const_iterator (const Image *img, unsigned y, unsigned x)
 const_iterator (const const_iterator &other)
 const_iterator (const_iterator &&other) noexcept
const_iteratoroperator= (const_iterator other) noexcept
bool valid () const
Pixel get_copy () const
const_Pixel_proxyoperator-> () noexcept
const_Pixel_proxyoperator* () noexcept
const_Pixel_proxyoperator-> () const noexcept
const_Pixel_proxyoperator* () const noexcept
unsigned char red () const
unsigned char green () const
unsigned char blue () const
Image::const_iteratoroperator++ ()
Image::const_iterator operator++ (int)
Image::const_iteratoroperator-- ()
Image::const_iterator operator-- (int)
Image::const_iteratoroperator+= (int)
Image::const_iteratoroperator-= (int)
bool operator== (const Image::const_iterator &o) const noexcept
bool operator!= (const Image::const_iterator &o) const noexcept

Private Member Functions

void rebuild ()

Private Attributes

const Imageimg
unsigned y
unsigned x
std::unique_ptr
< const_Pixel_proxy
proxy

Friends

void() swap (const_iterator &lhs, const_iterator &rhs) noexcept
Image::const_iterator operator+ (Image::const_iterator lhs, int rhs)
Image::const_iterator operator+ (int lhs, Image::const_iterator rhs)
Image::const_iterator operator- (Image::const_iterator lhs, int rhs)
int operator- (const Image::const_iterator &lhs, const Image::const_iterator &rhs)

Detailed Description

Definition at line 226 of file image.hpp.


Constructor & Destructor Documentation

Image::const_iterator::const_iterator ( const Image img,
unsigned  y,
unsigned  x 
)

Definition at line 416 of file image.cpp.

Image::const_iterator::const_iterator ( const const_iterator other)

Definition at line 418 of file image.cpp.

Image::const_iterator::const_iterator ( const_iterator &&  other)

Definition at line 420 of file image.cpp.


Member Function Documentation

unsigned char Image::const_iterator::blue ( ) const

Definition at line 470 of file image.cpp.

Pixel Image::const_iterator::get_copy ( ) const

Definition at line 442 of file image.cpp.

unsigned char Image::const_iterator::green ( ) const

Definition at line 466 of file image.cpp.

bool Image::const_iterator::operator!= ( const Image::const_iterator o) const

Definition at line 563 of file image.cpp.

const_Pixel_proxy & Image::const_iterator::operator* ( )

Definition at line 450 of file image.cpp.

const_Pixel_proxy & Image::const_iterator::operator* ( ) const

Definition at line 458 of file image.cpp.

Image::const_iterator & Image::const_iterator::operator++ ( )

Definition at line 479 of file image.cpp.

Image::const_iterator Image::const_iterator::operator++ ( int  )

Definition at line 491 of file image.cpp.

Image::const_iterator & Image::const_iterator::operator+= ( int  rhs)

Definition at line 527 of file image.cpp.

Image::const_iterator Image::const_iterator::operator-- ( int  )

Definition at line 515 of file image.cpp.

Image::const_iterator & Image::const_iterator::operator-- ( )

Definition at line 504 of file image.cpp.

Image::const_iterator & Image::const_iterator::operator-= ( int  rhs)

Definition at line 535 of file image.cpp.

const_Pixel_proxy * Image::const_iterator::operator-> ( ) const

Definition at line 454 of file image.cpp.

const_Pixel_proxy * Image::const_iterator::operator-> ( )

Definition at line 446 of file image.cpp.

Image::const_iterator & Image::const_iterator::operator= ( const_iterator  other)

Definition at line 433 of file image.cpp.

bool Image::const_iterator::operator== ( const Image::const_iterator o) const

Definition at line 559 of file image.cpp.

void Image::const_iterator::rebuild ( ) [private]

Definition at line 474 of file image.cpp.

unsigned char Image::const_iterator::red ( ) const

Definition at line 462 of file image.cpp.

bool Image::const_iterator::valid ( ) const

Definition at line 438 of file image.cpp.


Friends And Related Function Documentation

Image::const_iterator operator+ ( Image::const_iterator  lhs,
int  rhs 
) [friend]

Definition at line 543 of file image.cpp.

Image::const_iterator operator+ ( int  lhs,
Image::const_iterator  rhs 
) [friend]

Definition at line 547 of file image.cpp.

Image::const_iterator operator- ( Image::const_iterator  lhs,
int  rhs 
) [friend]

Definition at line 551 of file image.cpp.

int operator- ( const Image::const_iterator lhs,
const Image::const_iterator rhs 
) [friend]

Definition at line 555 of file image.cpp.

void() swap ( Image::const_iterator lhs,
Image::const_iterator rhs 
) [friend]

Definition at line 424 of file image.cpp.


Member Data Documentation

Definition at line 262 of file image.hpp.

std::unique_ptr<const_Pixel_proxy> Image::const_iterator::proxy [private]

Definition at line 264 of file image.hpp.

unsigned Image::const_iterator::x [private]

Definition at line 263 of file image.hpp.

unsigned Image::const_iterator::y [private]

Definition at line 263 of file image.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends