Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Arrays - 1D - Array1dIter2C<class Data1T,class Data2T>
 

  PUBLIC
Array1dIter2C::Array1dIter2C(void)
Array1dIter2C::Array1dIter2C(const Array1dC &,const Array1dC &,bool)
Array1dIter2C::Array1dIter2C(const Array1dC &,const Array1dC &,const IndexRangeC &)
Array1dIter2C::Array1dIter2C(const Array1dC &,const Array1dC &,IntT,IntT)
Array1dIter2C::First(void)
Array1dIter2C::First(IntT,IntT)
Array1dIter2C::IsFirst(void) const
BufferAccessIter2C::First(const RangeBufferAccessC &,const RangeBufferAccessC &)
BufferAccessIter2C::First(const RangeBufferAccessC &,const RangeBufferAccessC &,const IndexRangeC &)
BufferAccessIter2C::First(const SizeBufferAccessC &,const SizeBufferAccessC &)
BufferAccessIter2C::First(const SizeBufferAccessC &,const SizeBufferAccessC &,UIntT,UIntT)
BufferAccessIter2C::First(const RangeBufferAccessC &,const RangeBufferAccessC &,UIntT,UIntT)
BufferAccessIter2C::First(const BufferAccessC &,const BufferAccessC &,SizeT)
BufferAccessIter2C::First(const BufferAccessC &,const IndexRangeC &,const BufferAccessC &,const IndexRangeC &)
BufferAccessIter2C::IsElm(void) const
BufferAccessIter2C::IsLast(void) const
BufferAccessIter2C::operator bool(void)
BufferAccessIter2C::Next(void)
BufferAccessIter2C::Next(int)
BufferAccessIter2C::operator ++(int)
BufferAccessIter2C::Data1(void)
BufferAccessIter2C::Data1(void) const
BufferAccessIter2C::Data2(void)
BufferAccessIter2C::Data2(void) const
BufferAccessIter2C::Invalidate(void)

   Array1dIter2C<class Data1T,class Data2T>   
 
dual Array1dC iterator.
 
include "Ravl/Array1dIter2.hh"
Created:24/08/99 
Source file:Ravl/Core/Container/Array/Array1dIter2.hh
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
Note, the first array in the pair controls the number of elements visited.

Parent Classes: Variables:
Array1dC dat1;

Array1dC dat2;

Methods:
Array1dIter2C()
Default constructor.

Array1dIter2C(const Array1dC<Data1T> & arr1,const Array1dC<Data2T> & arr2,bool matching = true)
Constructor.
If you don't intend to iterator over the same range for each array set the 'matching' paramiter to false. This will disable the check.

Array1dIter2C(const Array1dC<Data1T> & arr1,const Array1dC<Data2T> & arr2,const IndexRangeC & rng)
Constructor.

Array1dIter2C(const Array1dC<Data1T> & arr1,const Array1dC<Data2T> & arr2,IntT offset1,IntT offset2)
Constructor from two arrays.
Iterate through the length of the first array starting from offet1 in the first, and offset2 in the second.

void First()
Goto first element in the array.

void First(IntT offset1,IntT offset2)
Reset to position offset1 in the first array, and offset2 in the second.

bool IsFirst() const
Test if this is the first element in the range.
Note,this is slower than IsElm().

#include "Ravl/BfAccIter2.hh"
bool First(const RangeBufferAccessC<Data1T> & buff,const RangeBufferAccessC<Data2T> & buff2)
Goto first elements.

bool First(const RangeBufferAccessC<Data1T> & buff,const RangeBufferAccessC<Data2T> & buff2,const IndexRangeC & rng)
Goto first elements.

bool First(const SizeBufferAccessC<Data1T> & buff,const SizeBufferAccessC<Data2T> & buff2)
Goto first elements.

bool First(const SizeBufferAccessC<Data1T> & buff,const SizeBufferAccessC<Data2T> & buff2,UIntT off1,UIntT off2)
Goto first elements.

bool First(const RangeBufferAccessC<Data1T> & buff,const RangeBufferAccessC<Data2T> & buff2,UIntT off1,UIntT off2 = 0)
Goto first elements.

bool First(const BufferAccessC<Data1T> & buff,const BufferAccessC<Data2T> & buff2,SizeT size)
Goto first elements.

bool First(const BufferAccessC<Data1T> & buff,const IndexRangeC & rng1,const BufferAccessC<Data2T> & buff2,const IndexRangeC & rng2)
Goto first elements.

bool IsElm() const
At valid element ?

bool IsLast() const
Test if we're at the last valid element in the range.
Note: This is slightly slower than IsElm().

operator bool()
At valid element ?

void Next()
Goto next element.
Call ONLY if IsElm() is valid.

void Next(int skip)
Advance 'skip' elements.
Call ONLY if you know this will not go past the end of the array.

void operator ++(int)
Goto next element.
Call ONLY if IsElm() is valid.

Data1T & Data1()
Access data.

const Data1T & Data1() const
Access data.

Data2T & Data2()
Access data.

const Data2T & Data2() const
Access data.

void Invalidate()
Make IsElm() return false.


Maintainer:Charles Galambos, Created: 24/08/99, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002