egami
C++ Image Processing program
Public Member Functions | Private Attributes
Row_proxy Class Reference

A proxy to a row in an image. More...

#include <image.hpp>

Collaboration diagram for Row_proxy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Row_proxy (Image *img, unsigned y) noexcept
 Constructs a proxy to a given row in a given image.
Pixel_proxy operator[] (unsigned x)
 Returns a proxy to the xth pixel of the row.

Private Attributes

Imageimg
unsigned y

Detailed Description

A proxy to a row in an image.

Definition at line 57 of file image.hpp.


Constructor & Destructor Documentation

Row_proxy::Row_proxy ( Image img,
unsigned  y 
)

Constructs a proxy to a given row in a given image.

Parameters:
imgthe Image containing the row
ythe index of the row in img

Definition at line 198 of file image.cpp.


Member Function Documentation

Pixel_proxy Row_proxy::operator[] ( unsigned  x)

Returns a proxy to the xth pixel of the row.

Parameters:
xthe column of the returned Pixel

Definition at line 200 of file image.cpp.

Here is the call graph for this function:


Member Data Documentation

Image* Row_proxy::img [private]

The containing image

Definition at line 75 of file image.hpp.

unsigned Row_proxy::y [private]

The target row

Definition at line 76 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