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

  PUBLIC
SArray2dIterC::SArray2dIterC(void)
SArray2dIterC::SArray2dIterC(const SArray2dC &)
SArray2dIterC::operator =(SArray2dC &)
SArray2dIterC::First(void)
SArray2dIterC::RowIndex(void) const
SArray2dIterC::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)

   SArray2dIterC<class DataT>   
 
SArray2dC iterator.
 
include "Ravl/SArr2Iter.hh"
Created:10/09/1998 
Source file:Ravl/Core/Container/SArray/SArr2Iter.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Comments:
Simple 2d array iterator.

Parent Classes: Variables:
SArray2dC arr;

Methods:
SArray2dIterC()
Default constructor.

SArray2dIterC(const SArray2dC<DataT> & narr)
Constructor.

const SArray2dIterC<DataT> & operator =(SArray2dC<DataT> & narr)
Assignment to an array.

void First()
Goto first element in array.

IntT RowIndex() const
Get index of current row.

Index2dC Index() const
Get current index.
This is a little 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, Created: 10/09/1998, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002