Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Arrays - 2D - Array2dSqr2IterC<class DataT>
 

  PUBLIC
Array2dSqr2IterC::Array2dSqr2IterC(void)
Array2dSqr2IterC::Array2dSqr2IterC(const Array2dC &)
Array2dSqr2IterC::First(void)
Array2dSqr2IterC::Next(void)
Array2dSqr2IterC::IsElm(void) const
Array2dSqr2IterC::operator bool(void) const
Array2dSqr2IterC::operator ++(void)
Array2dSqr2IterC::operator ++(int)
Array2dSqr2IterC::operator *(void)
Array2dSqr2IterC::operator *(void) const
Array2dSqr2IterC::DataBR(void)
Array2dSqr2IterC::DataBR(void) const
Array2dSqr2IterC::DataBL(void)
Array2dSqr2IterC::DataBL(void) const
Array2dSqr2IterC::DataTR(void)
Array2dSqr2IterC::DataTR(void) const
Array2dSqr2IterC::DataTL(void)
Array2dSqr2IterC::DataTL(void) const
Array2dSqr2IterC::Index(void) const
BufferAccess2dIterC::First(const BufferAccessC> &,SizeT,SizeT)
BufferAccess2dIterC::First(const SizeBufferAccessC> &,SizeT)
BufferAccess2dIterC::First(const BufferAccessC> &,const IndexRangeC &,const IndexRangeC &)
BufferAccess2dIterC::First(const RangeBufferAccessC> &,const IndexRangeC &)
BufferAccess2dIterC::RowStart(void)
BufferAccess2dIterC::NextRow(void)
BufferAccess2dIterC::NextRow(IndexC)
BufferAccess2dIterC::NextCol(void)
BufferAccess2dIterC::NextCol(int)
BufferAccess2dIterC::Next(void)
BufferAccess2dIterC::IsElm(void) const
BufferAccess2dIterC::operator bool(void) const
BufferAccess2dIterC::operator ++(void)
BufferAccess2dIterC::operator ++(int)
BufferAccess2dIterC::operator *(void)
BufferAccess2dIterC::operator *(void) const
BufferAccess2dIterC::operator ->(void)
BufferAccess2dIterC::operator ->(void) const
BufferAccess2dIterC::Data(void)
BufferAccess2dIterC::Data(void) const
BufferAccess2dIterC::Data1(void)
BufferAccess2dIterC::Data1(void) const
BufferAccess2dIterC::Row(void)
BufferAccess2dIterC::Row(void) const
BufferAccess2dIterC::RowIndex(const BufferAccessC *) const
BufferAccess2dIterC::ColIndex(void) const
BufferAccess2dIterC::Index(const BufferAccessC *) const
BufferAccess2dIterC::Invalidate(void)

   Array2dSqr2IterC<class DataT>   
 
Iterator which slides a 2x2 window over an array.
 
include "Ravl/Array2dSqr2Iter.hh"
Source file:Ravl/Core/Container/Array/Array2dSqr2Iter.hh
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
The square can be accessed with DataBL,DataBR,DataUL and DataUR which access the following array elements.

TL TR
BL BR

Parent Classes: Variables:
Array2dC array;

DataT * up;

Methods:
Array2dSqr2IterC()
Default constructor.

Array2dSqr2IterC(const Array2dC<DataT> & narray)
Constructor.

bool First()
Goto first element in the array.

bool Next()
Goto next element.
Returns true if its on the same row.

bool IsElm() const
Test if iterator is at a valid element.

operator bool() const
Test if iterator is at a valid element.

void operator ++()
Goto next element.

void operator ++(int)
Goto next element.

DataT & operator *()
Access bottom right data element

const DataT & operator *() const
Access bottom right data element

DataT & DataBR()
Access bottom right data element

const DataT & DataBR() const
Access bottom right data element

DataT & DataBL()
Access bottom left data element

const DataT & DataBL() const
Access bottom left data element

DataT & DataTR()
Access upper right data element

const DataT & DataTR() const
Access upper right data element

DataT & DataTL()
Access upper left data element.

const DataT & DataTL() const
Access upper left data element

Index2dC Index() const
Get index of current location.
Has to be calculate, and so is slightly slow.

#include "Ravl/BfAcc2Iter.hh"
bool First(const BufferAccessC<BufferAccessC<DataT>> & pbuf,SizeT size1,SizeT size2)
Goto first element in the array.

bool First(const SizeBufferAccessC<BufferAccessC<DataT>> & pbuf,SizeT size)
Goto first element in the array.

bool First(const BufferAccessC<BufferAccessC<DataT>> & pbuf,const IndexRangeC & nrng1,const IndexRangeC & nrng2)
Goto first element in the array.

bool First(const RangeBufferAccessC<BufferAccessC<DataT>> & pbuf,const IndexRangeC & nrng)
Goto first element in the array

void RowStart()
Go back to the begining of this row.

bool NextRow()
Go to the begining of the next row.
Returns true if the iterator is begining of a valid row, and false if it is at the end of the array.

bool NextRow(IndexC off)
Go to the 'offset' from the first element in the next row.
Returns true if the iterator is in a valid row, and false if it is at the end of the array.

void NextCol()
Goto next column, without checking for row change.
Use with care.

void NextCol(int skip)
Go forward 'skip' columns, without checking for row change.
Use with care.

bool Next()
Goto next element.
Goto next element in the array. Returns true if the element is on the same row of the array. It returns false if the element is on the next row or at the end of the array.

bool IsElm() const
Test if iterator is at a valid element.

operator bool() const
Test if iterator is at a valid element.

void operator ++()
Goto next element.

void operator ++(int)
Goto next element.

DataT & operator *()
Access data of current element

const DataT & operator *() const
Access data of current element

DataT * operator ->()
Access data of current element

const DataT * operator ->() const
Access data of current element

DataT & Data()
Access data of current element

const DataT & Data() const
Access data of current element

DataT & Data1()
Access data of current element

const DataT & Data1() const
Access data of current element

RangeBufferAccessC<DataT> & Row()
Access row we're currently iterating.

const RangeBufferAccessC<DataT> & Row() const
Access row we're currently iterating.

IntT RowIndex(const BufferAccessC<DataT> * row1Begin) const
Work out the current row.

IntT ColIndex() const
Work out the current column.

Index2dC Index(const BufferAccessC<DataT> * rowBegin) const
Get index of current location.
Has to be calculate, and so is slightly slow.

void Invalidate()
Invalidate this iterator.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002