arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Nrro::NrroIter< T > Class Template Reference

#include <nrro.h>

List of all members.


Detailed Description

template<class T>
class Nrro::NrroIter< T >

Iterator, generic type, use gen functions TODO: need to make a const iterator too!, I think it works NOTE: this includes a -> that gives you the nrro so, this suffices as a typed nrro object.

NOTE: if you use an iterator internal to this object you shoud increment your ref count before use, then decrement after, to avoid having it nuke you!!!

Definition at line 400 of file nrro.h.

Public Member Functions

 NrroIter (Nrro *n, int pos=0)
 Iterator implementation.

 NrroIter (const NrroIter &ni)
virtual ~NrroIter ()
T & operator * ()
const T & operator * () const
Nrrooperator-> ()
const Nrrooperator-> () const
NrroIteroperator= (const NrroIter &ni)
NrroIteroperator= (int pos)
const NrroIteroperator+= (int dpos) const
NrroIteroperator+= (int dpos)
const NrroIteroperator-= (int dpos) const
NrroIteroperator-= (int dpos)
bool operator== (const NrroIter &ni) const
bool operator!= (const NrroIter &ni) const
bool operator> (const NrroIter &ni) const
bool operator< (const NrroIter &ni) const
bool operator>= (const NrroIter &ni) const
bool operator<= (const NrroIter &ni) const
bool isValid () const
const NrroIteroperator++ () const
NrroIteroperator++ ()
const NrroIter operator++ (int) const
NrroIter operator++ (int)
const NrroIteroperator-- () const
NrroIteroperator-- ()
const NrroIter operator-- (int) const
NrroIter operator-- (int)
const NrroIter operator+ (int dpos) const
NrroIter operator+ (int dpos)
const NrroIter operator- (int dpos) const
NrroIter operator- (int dpos)
int operator- (const NrroIter &ni) const
 difference of Iterators

T & operator[] (int pos)
 this accesses in 1D from current Iterator position

operator[] (int pos) const
operator() (int i1) const
 ()accessors are backwards from []ops, ie.

T & operator() (int i1)
operator() (int i1, int i2) const
T & operator() (int i1, int i2)
operator() (int i1, int i2, int i3, int i4=0) const
T & operator() (int i1, int i2, int i3, int i4=0)
operator() (int i1, int i2, int i3, int i4, int i5, int i6=0) const
T & operator() (int i1, int i2, int i3, int i4, int i5, int i6=0)
int pos () const

Protected Attributes

gutz::SmartPtr< Nrro_n
int _pos
T * _d


Constructor & Destructor Documentation

template<class T>
Nrro::NrroIter< T >::NrroIter Nrro n,
int  pos = 0
 

Iterator implementation.

Definition at line 785 of file nrro.h.

References Nrro::NrroIter< T >::_d, Nrro::_pos, n, and gutz::Counted::SmartPtr.

template<class T>
Nrro::NrroIter< T >::NrroIter const NrroIter< T > &  ni  ) 
 

Definition at line 801 of file nrro.h.

References Nrro::_pos.

template<class T>
virtual Nrro::NrroIter< T >::~NrroIter  )  [inline, virtual]
 

Definition at line 404 of file nrro.h.


Member Function Documentation

template<class T>
bool Nrro::NrroIter< T >::isValid  )  const [inline]
 

Definition at line 421 of file nrro.h.

References Nrro::NrroIter< T >::_n, and Nrro::NrroIter< T >::_pos.

Referenced by blendOver(), and minmaxFunc().

template<class T>
const T& Nrro::NrroIter< T >::operator *  )  const [inline]
 

Definition at line 406 of file nrro.h.

References Nrro::NrroIter< T >::_d.

template<class T>
T& Nrro::NrroIter< T >::operator *  )  [inline]
 

Definition at line 405 of file nrro.h.

References Nrro::NrroIter< T >::_d.

template<class T>
bool Nrro::NrroIter< T >::operator!= const NrroIter< T > &  ni  )  const [inline]
 

Definition at line 416 of file nrro.h.

template<class T>
T & Nrro::NrroIter< T >::operator() int  i1,
int  i2,
int  i3,
int  i4,
int  i5,
int  i6 = 0
[inline]
 

Definition at line 827 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T Nrro::NrroIter< T >::operator() int  i1,
int  i2,
int  i3,
int  i4,
int  i5,
int  i6 = 0
const [inline]
 

Definition at line 835 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T & Nrro::NrroIter< T >::operator() int  i1,
int  i2,
int  i3,
int  i4 = 0
[inline]
 

Definition at line 859 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T Nrro::NrroIter< T >::operator() int  i1,
int  i2,
int  i3,
int  i4 = 0
const [inline]
 

Definition at line 867 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T & Nrro::NrroIter< T >::operator() int  i1,
int  i2
[inline]
 

Definition at line 843 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T Nrro::NrroIter< T >::operator() int  i1,
int  i2
const [inline]
 

Definition at line 851 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T& Nrro::NrroIter< T >::operator() int  i1  )  [inline]
 

Definition at line 449 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
T Nrro::NrroIter< T >::operator() int  i1  )  const [inline]
 

()accessors are backwards from []ops, ie.

(x,y,z,w) vs [w][z][y][x] they access from begining of nrro data array, not current iter pos

Definition at line 448 of file nrro.h.

References Nrro::NrroIter< T >::_n.

template<class T>
NrroIter Nrro::NrroIter< T >::operator+ int  dpos  )  [inline]
 

Definition at line 437 of file nrro.h.

References Nrro::NrroIter< T >::_n, and Nrro::NrroIter< T >::_pos.

template<class T>
const NrroIter Nrro::NrroIter< T >::operator+ int  dpos  )  const [inline]
 

Definition at line 435 of file nrro.h.

References Nrro::NrroIter< T >::_n, Nrro::NrroIter< T >::_pos, and gutz::SmartPtr< Nrro >::getPtr().

template<class T>
NrroIter Nrro::NrroIter< T >::operator++ int   )  [inline]
 

Definition at line 427 of file nrro.h.

template<class T>
const NrroIter Nrro::NrroIter< T >::operator++ int   )  const [inline]
 

Definition at line 425 of file nrro.h.

template<class T>
NrroIter& Nrro::NrroIter< T >::operator++  )  [inline]
 

Definition at line 424 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
const NrroIter& Nrro::NrroIter< T >::operator++  )  const [inline]
 

Definition at line 423 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
NrroIter& Nrro::NrroIter< T >::operator+= int  dpos  )  [inline]
 

Definition at line 412 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
const NrroIter& Nrro::NrroIter< T >::operator+= int  dpos  )  const [inline]
 

Definition at line 411 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
int Nrro::NrroIter< T >::operator- const NrroIter< T > &  ni  )  const [inline]
 

difference of Iterators

Definition at line 442 of file nrro.h.

References Nrro::NrroIter< T >::_pos.

template<class T>
NrroIter Nrro::NrroIter< T >::operator- int  dpos  )  [inline]
 

Definition at line 440 of file nrro.h.

References Nrro::NrroIter< T >::_n, and Nrro::NrroIter< T >::_pos.

template<class T>
const NrroIter Nrro::NrroIter< T >::operator- int  dpos  )  const [inline]
 

Definition at line 438 of file nrro.h.

References Nrro::NrroIter< T >::_n, Nrro::NrroIter< T >::_pos, and gutz::SmartPtr< Nrro >::getPtr().

template<class T>
NrroIter Nrro::NrroIter< T >::operator-- int   )  [inline]
 

Definition at line 433 of file nrro.h.

template<class T>
const NrroIter Nrro::NrroIter< T >::operator-- int   )  const [inline]
 

Definition at line 431 of file nrro.h.

template<class T>
NrroIter& Nrro::NrroIter< T >::operator--  )  [inline]
 

Definition at line 430 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
const NrroIter& Nrro::NrroIter< T >::operator--  )  const [inline]
 

Definition at line 429 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
NrroIter& Nrro::NrroIter< T >::operator-= int  dpos  )  [inline]
 

Definition at line 414 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
const NrroIter& Nrro::NrroIter< T >::operator-= int  dpos  )  const [inline]
 

Definition at line 413 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_pos.

template<class T>
const Nrro* Nrro::NrroIter< T >::operator->  )  const [inline]
 

Definition at line 408 of file nrro.h.

References Nrro::NrroIter< T >::_n, and gutz::SmartPtr< Nrro >::getPtr().

template<class T>
Nrro* Nrro::NrroIter< T >::operator->  )  [inline]
 

Definition at line 407 of file nrro.h.

References Nrro::NrroIter< T >::_n, and gutz::SmartPtr< Nrro >::getPtr().

template<class T>
bool Nrro::NrroIter< T >::operator< const NrroIter< T > &  ni  )  const [inline]
 

Definition at line 418 of file nrro.h.

References Nrro::NrroIter< T >::_pos.

template<class T>
bool Nrro::NrroIter< T >::operator<= const NrroIter< T > &  ni  )  const [inline]
 

Definition at line 420 of file nrro.h.

References Nrro::NrroIter< T >::_pos.

template<class T>
NrroIter& Nrro::NrroIter< T >::operator= int  pos  )  [inline]
 

Definition at line 410 of file nrro.h.

References Nrro::NrroIter< T >::_d, and Nrro::NrroIter< T >::_n.

template<class T>
Nrro::NrroIter< T > & Nrro::NrroIter< T >::operator= const NrroIter< T > &  ni  ) 
 

Definition at line 807 of file nrro.h.

References Nrro::NrroIter< T >::_d, Nrro::NrroIter< T >::_n, and Nrro::NrroIter< T >::_pos.

template<class T>
bool Nrro::NrroIter< T >::operator== const NrroIter< T > &  ni  )  const
 

Definition at line 817 of file nrro.h.

References Nrro::NrroIter< T >::_n, and Nrro::NrroIter< T >::_pos.

template<class T>
bool Nrro::NrroIter< T >::operator> const NrroIter< T > &  ni  )  const [inline]
 

Definition at line 417 of file nrro.h.

References Nrro::NrroIter< T >::_pos.

template<class T>
bool Nrro::NrroIter< T >::operator>= const NrroIter< T > &  ni  )  const [inline]
 

Definition at line 419 of file nrro.h.

References Nrro::NrroIter< T >::_pos.

template<class T>
T Nrro::NrroIter< T >::operator[] int  pos  )  const [inline]
 

Definition at line 445 of file nrro.h.

template<class T>
T& Nrro::NrroIter< T >::operator[] int  pos  )  [inline]
 

this accesses in 1D from current Iterator position

Definition at line 444 of file nrro.h.

template<class T>
int Nrro::NrroIter< T >::pos  )  const [inline]
 

Definition at line 456 of file nrro.h.

References Nrro::NrroIter< T >::_pos.

Referenced by minmaxFunc().


Member Data Documentation

template<class T>
T* Nrro::NrroIter< T >::_d [mutable, protected]
 

Definition at line 460 of file nrro.h.

Referenced by Nrro::NrroIter< T >::NrroIter(), Nrro::NrroIter< T >::operator *(), Nrro::NrroIter< T >::operator++(), Nrro::NrroIter< T >::operator+=(), Nrro::NrroIter< T >::operator--(), Nrro::NrroIter< T >::operator-=(), and Nrro::NrroIter< T >::operator=().

template<class T>
gutz::SmartPtr<Nrro> Nrro::NrroIter< T >::_n [protected]
 

Definition at line 458 of file nrro.h.

Referenced by Nrro::NrroIter< T >::isValid(), Nrro::NrroIter< T >::operator()(), Nrro::NrroIter< T >::operator+(), Nrro::NrroIter< T >::operator-(), Nrro::NrroIter< T >::operator->(), Nrro::NrroIter< T >::operator=(), and Nrro::NrroIter< T >::operator==().

template<class T>
int Nrro::NrroIter< T >::_pos [mutable, protected]
 

Definition at line 459 of file nrro.h.

Referenced by Nrro::NrroIter< T >::isValid(), Nrro::NrroIter< T >::operator+(), Nrro::NrroIter< T >::operator++(), Nrro::NrroIter< T >::operator+=(), Nrro::NrroIter< T >::operator-(), Nrro::NrroIter< T >::operator--(), Nrro::NrroIter< T >::operator-=(), Nrro::NrroIter< T >::operator<(), Nrro::NrroIter< T >::operator<=(), Nrro::NrroIter< T >::operator=(), Nrro::NrroIter< T >::operator==(), Nrro::NrroIter< T >::operator>(), Nrro::NrroIter< T >::operator>=(), and Nrro::NrroIter< T >::pos().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk