Iterator< T, D > Class Template Reference

#include <iterator.h>

Inheritance diagram for Iterator< T, D >:

Inheritance graph
[legend]
Collaboration diagram for Iterator< T, D >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool end ()
 test function to know if the course is over
T & GetFirst ()
 return the first item of a contener
T & GetNext ()
 return the next item in the course
 Iterator (Contener< T, Iterator< T, D > > &c)

Protected Attributes

bool end_flag
 end test flag
Contener< T, Iterator< T,
D > > & 
my_cont
 associated contener

Private Member Functions

D * myIterator ()
 template heritence trick

Detailed Description

template<typename T, typename D>
class Iterator< T, D >

Interface Iterator<T> Generic iterator object

Definition at line 54 of file iterator.h.


Constructor & Destructor Documentation

template<typename T, typename D>
Iterator< T, D >::Iterator ( Contener< T, Iterator< T, D > > &  c  )  [inline]

Definition at line 59 of file iterator.h.

00059                                           :
00060     my_cont(c),end_flag(false)
00061     {};
  


Member Function Documentation

template<typename T, typename D>
bool Iterator< T, D >::end (  )  [inline]

test function to know if the course is over

Definition at line 75 of file iterator.h.

Referenced by FormeFaible< DomainA, DomainC, Dim >::ApplyAtomsCorrection(), FormeFaible< DomainA, DomainC, Dim >::BuildAtomsRHS(), Bridging< DomainA, DomainC, Dim, Pond >::BuildAtomsWeight(), BelytschkoFull< DomainA, DomainC, Dim >::BuildConstraintMatrix(), FormeFaible< DomainA, DomainC, Dim >::BuildContinuConstraintMatrix(), Bridging< DomainA, DomainC, Dim, Pond >::BuildContinuWeight(), LeastSquare< DomainA, DomainC, Dim >::BuildLeastSquareRHS(), BridgingPar< DomainA, DomainC, Dim, Pond >::CorrectSurfaceEffect(), FormeFaible< DomainA, DomainC, Dim >::CorrectWeights(), LeastSquare< DomainA, DomainC, Dim >::CorrigeAtoms(), LeastSquare< DomainA, DomainC, Dim >::CorrigeContinu(), Bridging< DomainA, DomainC, Dim, Pond >::Dump(), FiltreAtom< Domain, Dim >::end(), FiltreMesh< Domain, Dim >::endElem(), and FiltreMesh< Domain, Dim >::endNode().

00075             {
00076     return end_flag;
00077   };

template<typename T, typename D>
T& Iterator< T, D >::GetFirst (  )  [inline]

return the first item of a contener

Reimplemented in IteratorTableau< T >, IteratorTableauBaseType< T >, IteratorElemsLibMesh< Dim >, IteratorNodesLibMesh< Dim >, IteratorMD1D, IteratorLammps, IteratorStamp, IteratorTableau< RefAtom >, IteratorTableau< RefNd >, and IteratorTableau< RefElt >.

Definition at line 64 of file iterator.h.

00064                  {
00065     end_flag = false;
00066     return myIterator()->GetFirst();
00067   }

template<typename T, typename D>
T& Iterator< T, D >::GetNext (  )  [inline]

return the next item in the course

Reimplemented in IteratorTableau< T >, IteratorTableauBaseType< T >, IteratorElemsLibMesh< Dim >, IteratorNodesLibMesh< Dim >, IteratorMD1D, IteratorLammps, IteratorStamp, IteratorTableau< RefAtom >, IteratorTableau< RefNd >, and IteratorTableau< RefElt >.

Definition at line 70 of file iterator.h.

00070                 {
00071     return myIterator()->GetNext();
00072   };

template<typename T, typename D>
D* Iterator< T, D >::myIterator (  )  [inline, private]

template heritence trick

Definition at line 82 of file iterator.h.

Referenced by Iterator< T, IteratorTableauBaseType< T > >::GetFirst(), and Iterator< T, IteratorTableauBaseType< T > >::GetNext().

00082                  {
00083     return static_cast<D*>(this);
00084   }


Member Data Documentation

template<typename T, typename D>
bool Iterator< T, D >::end_flag [protected]

end test flag

Definition at line 91 of file iterator.h.

Referenced by Iterator< T, IteratorTableauBaseType< T > >::end(), and Iterator< T, IteratorTableauBaseType< T > >::GetFirst().

template<typename T, typename D>
Contener<T,Iterator<T,D> >& Iterator< T, D >::my_cont [protected]

associated contener

Definition at line 88 of file iterator.h.


The documentation for this class was generated from the following file:
Generated on Fri Sep 7 13:13:19 2007 for LibMultiScale by  doxygen 1.5.2