ResizeArrayIter< T > Class Template Reference

#include <ResizeArrayIter.h>

List of all members.

Public Member Functions

T * operator-> (void)
 ResizeArrayIter (void)
 ResizeArrayIter (ResizeArray< T > &ra)
 ResizeArrayIter (const ResizeArrayIter< T > &iter)
ResizeArrayIter< T > & operator= (const ResizeArrayIter< T > &iter)
 ~ResizeArrayIter (void)
ResizeArrayIter< T > begin (void) const
ResizeArrayIter< T > end (void) const
int operator!= (const ResizeArrayIter< T > &iter) const
int operator== (const ResizeArrayIter< T > &iter) const
ResizeArrayIter< T > operator++ (void)
ResizeArrayIter< T > operator++ (int)
T & operator * (void) const


Detailed Description

template<class T>
class ResizeArrayIter< T >

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 15 of file ResizeArrayIter.h.


Constructor & Destructor Documentation

template<class T>
ResizeArrayIter< T >::ResizeArrayIter ( void   )  [inline]

Definition at line 25 of file ResizeArrayIter.h.

00025                           {
00026       array = NULL;
00027       currentIndex = 0;
00028     }

template<class T>
ResizeArrayIter< T >::ResizeArrayIter ( ResizeArray< T > &  ra  )  [inline]

Definition at line 30 of file ResizeArrayIter.h.

00030                                         {
00031       array = &ra;
00032       currentIndex = 0;
00033     }

template<class T>
ResizeArrayIter< T >::ResizeArrayIter ( const ResizeArrayIter< T > &  iter  )  [inline]

Definition at line 35 of file ResizeArrayIter.h.

00035                                                     {
00036       array = iter.array;
00037       currentIndex = iter.currentIndex;
00038     }

template<class T>
ResizeArrayIter< T >::~ResizeArrayIter ( void   )  [inline]

Definition at line 46 of file ResizeArrayIter.h.

00046 {}


Member Function Documentation

template<class T>
ResizeArrayIter<T> ResizeArrayIter< T >::begin ( void   )  const [inline]

Definition at line 48 of file ResizeArrayIter.h.

Referenced by ProxyMgr::buildProxySpanningTree2(), OptPmeCompute::doWork(), ComputeQM::doWork(), ComputeMsmSerial::doWork(), ComputeMsm::doWork(), ComputeGlobal::doWork(), ComputeGBISser::doWork(), ComputeFullDirect::doWork(), ComputeFmmSerial::doWork(), ComputeExt::doWork(), ComputeEwald::doWork(), ComputeHomePatches::initialize(), ComputeGlobal::recvResults(), Node::run(), ComputeQM::saveResults(), ComputeMsmSerial::saveResults(), ComputeMsm::saveResults(), ComputeGBISser::saveResults(), ComputeFmmSerial::saveResults(), ComputeExt::saveResults(), PatchMgr::sendMovePatches(), OptPmeCompute::ungridForces_finalize(), and PatchMgr::~PatchMgr().

00048                                          {
00049       ResizeArrayIter<T> iter;
00050       iter.array = array;
00051       iter.currentIndex = 0;
00052       return(iter);
00053     }

template<class T>
ResizeArrayIter<T> ResizeArrayIter< T >::end ( void   )  const [inline]

Definition at line 55 of file ResizeArrayIter.h.

Referenced by ProxyMgr::buildProxySpanningTree2(), OptPmeCompute::doWork(), ComputeQM::doWork(), ComputeMsmSerial::doWork(), ComputeMsm::doWork(), ComputeGlobal::doWork(), ComputeGBISser::doWork(), ComputeFullDirect::doWork(), ComputeFmmSerial::doWork(), ComputeExt::doWork(), ComputeEwald::doWork(), ComputeHomePatches::initialize(), ComputeGlobal::recvResults(), Node::run(), ComputeQM::saveResults(), ComputeMsmSerial::saveResults(), ComputeMsm::saveResults(), ComputeGBISser::saveResults(), ComputeFmmSerial::saveResults(), ComputeExt::saveResults(), PatchMgr::sendMovePatches(), OptPmeCompute::ungridForces_finalize(), and PatchMgr::~PatchMgr().

00055                                        {
00056       ResizeArrayIter<T> iter;
00057       iter.array = array;
00058       iter.currentIndex = array->size();
00059       return(iter);
00060     }

template<class T>
T& ResizeArrayIter< T >::operator * ( void   )  const [inline]

Definition at line 81 of file ResizeArrayIter.h.

00081                               {
00082       return array->rep.array[currentIndex];
00083     }

template<class T>
int ResizeArrayIter< T >::operator!= ( const ResizeArrayIter< T > &  iter  )  const [inline]

Definition at line 62 of file ResizeArrayIter.h.

00062                                                           {
00063       return (iter.currentIndex != currentIndex || iter.array != array);
00064     }

template<class T>
ResizeArrayIter<T> ResizeArrayIter< T >::operator++ ( int   )  [inline]

Definition at line 75 of file ResizeArrayIter.h.

00075                                        {
00076       ResizeArrayIter<T> tmp(*this);
00077       currentIndex++;
00078       return (tmp);
00079     }

template<class T>
ResizeArrayIter<T> ResizeArrayIter< T >::operator++ ( void   )  [inline]

Definition at line 70 of file ResizeArrayIter.h.

00070                                         {
00071       currentIndex++;
00072       return (*this);
00073     }

template<class T>
T* ResizeArrayIter< T >::operator-> ( void   )  [inline]

Definition at line 23 of file ResizeArrayIter.h.

00023 { return ((array->rep.array)+currentIndex); }

template<class T>
ResizeArrayIter<T>& ResizeArrayIter< T >::operator= ( const ResizeArrayIter< T > &  iter  )  [inline]

Definition at line 40 of file ResizeArrayIter.h.

00040                                                                    {
00041       array = iter.array;
00042       currentIndex = iter.currentIndex;
00043       return (*this);
00044     }

template<class T>
int ResizeArrayIter< T >::operator== ( const ResizeArrayIter< T > &  iter  )  const [inline]

Definition at line 66 of file ResizeArrayIter.h.

00066                                                           {
00067       return (!operator!=(iter));
00068     }


The documentation for this class was generated from the following file:
Generated on Mon Nov 20 01:17:20 2017 for NAMD by  doxygen 1.4.7