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

  PUBLIC
BufferAccess2dIterC::BufferAccess2dIterC(void)
BufferAccess2dIterC::BufferAccess2dIterC(const BufferAccessC> &,SizeT,SizeT)
BufferAccess2dIterC::BufferAccess2dIterC(const SizeBufferAccessC> &,SizeT)
BufferAccess2dIterC::BufferAccess2dIterC(const RangeBufferAccessC> &,const IndexRangeC &)
BufferAccess2dIterC::BufferAccess2dIterC(const BufferAccessC> &,const IndexRangeC &,const IndexRangeC &)
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)

   BufferAccess2dIterC<class DataT>   
 
2d buffer iterator.
 
include "Ravl/BfAcc2Iter.hh"
Created:24/01/2001 
Source file:Ravl/Core/Container/Buffer/BfAcc2Iter.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Derived Classes: Variables:
BufferAccessIterC> rit;

BufferAccessIterC cit;

IndexRangeC rng;

Methods:
BufferAccess2dIterC()
Default constructor.

BufferAccess2dIterC(const BufferAccessC<BufferAccessC<DataT>> & pbuf,SizeT size1,SizeT size2)
Constructor.

BufferAccess2dIterC(const SizeBufferAccessC<BufferAccessC<DataT>> & pbuf,SizeT size)
Constructor.

BufferAccess2dIterC(const RangeBufferAccessC<BufferAccessC<DataT>> & pbuf,const IndexRangeC & nrng2)
Constructor.

BufferAccess2dIterC(const BufferAccessC<BufferAccessC<DataT>> & pbuf,const IndexRangeC & nrng1,const IndexRangeC & nrng2)
Constructor.

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: 24/01/2001, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002