Back to index

salome-kernel  6.5.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes
PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG > Class Template Reference

#include <PalmCouplingPolicy.hxx>

Collaboration diagram for PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< TTIME >
::const_iterator 
ItTime
typedef std::vector< TTAG >
::const_iterator 
ItTag

Public Member Functions

 DataIdIterator (const InternalDataIdContainer< TTIME, TTAG > &pc)
 DataIdIterator (const InternalDataIdContainer< TTIME, TTAG > &pc, ItTime itTime, ItTag itTag)
 DataIdIterator (const DataIdIterator &dIt)
 ~DataIdIterator ()
DataIdIteratoroperator= (const DataIdIterator &dIt)
DataId operator* () const
bool operator== (const DataIdIterator &dIt) const
bool operator!= (const DataIdIterator &dIt) const
DataIdIteratoroperator++ ()
DataIdIterator operator++ (int fake)

Private Member Functions

 DataIdIterator ()

Private Attributes

ItTime _itTime
ItTag _itTag
const InternalDataIdContainer
< TTIME, TTAG > & 
_pc

Detailed Description

template<typename T_TIME, typename T_TAG>
template<typename TTIME, typename TTAG>
class PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >

Definition at line 124 of file PalmCouplingPolicy.hxx.


Member Typedef Documentation

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
typedef std::vector<TTAG >::const_iterator PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::ItTag

Definition at line 129 of file PalmCouplingPolicy.hxx.

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
typedef std::vector<TTIME>::const_iterator PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::ItTime

Definition at line 128 of file PalmCouplingPolicy.hxx.


Constructor & Destructor Documentation

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::DataIdIterator ( ) [inline, private]

Definition at line 135 of file PalmCouplingPolicy.hxx.

{}
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::DataIdIterator ( const InternalDataIdContainer< TTIME, TTAG > &  pc) [inline]

Definition at line 141 of file PalmCouplingPolicy.hxx.

                                                                    :
        _pc(pc),_itTime(pc._lTime.begin()),_itTag(pc._lTag.begin()) {}
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::DataIdIterator ( const InternalDataIdContainer< TTIME, TTAG > &  pc,
ItTime  itTime,
ItTag  itTag 
) [inline]

Definition at line 143 of file PalmCouplingPolicy.hxx.

                                                                                                :
        _pc(pc),_itTime(itTime),_itTag(itTag) {}
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::DataIdIterator ( const DataIdIterator< TTIME, TTAG > &  dIt) [inline]

Definition at line 146 of file PalmCouplingPolicy.hxx.

                                                :
        _pc(dIt._pc),_itTime(dIt._itTime),_itTag(dIt._itTag) {}
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::~DataIdIterator ( ) [inline]

Definition at line 148 of file PalmCouplingPolicy.hxx.

{}

Member Function Documentation

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
bool PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::operator!= ( const DataIdIterator< TTIME, TTAG > &  dIt) const [inline]

Definition at line 167 of file PalmCouplingPolicy.hxx.

                                                          { 
        return (_itTime != dIt._itTime) || (_itTag != dIt._itTag) || (&_pc != &dIt._pc);
      }
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
DataId PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::operator* ( ) const [inline]

Definition at line 159 of file PalmCouplingPolicy.hxx.

                               {
        std::cout << "-------- operator*(),  *_itTime : " << *_itTime << " *_itTag " <<  *_itTag <<std::endl;
        return DataId(*_itTime,*_itTag); }
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
DataIdIterator& PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::operator++ ( ) [inline]

Definition at line 172 of file PalmCouplingPolicy.hxx.

                                    {
        if ( _itTag != _pc._lTag.end() ) { 
          ++_itTag;
          if (_itTag != _pc._lTag.end() ) return *this;
        }
        if ( _itTime != _pc._lTime.end() )  { 
          ++_itTime;
          if (_itTime != _pc._lTime.end() ) _itTag=_pc._lTag.begin();
        }
        return *this;
      }
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
DataIdIterator PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::operator++ ( int  fake) [inline]

Definition at line 185 of file PalmCouplingPolicy.hxx.

                                          { 
        DataIdIterator tmpIt=*this; ++*this; return tmpIt; 
      }
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
DataIdIterator& PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::operator= ( const DataIdIterator< TTIME, TTAG > &  dIt) [inline]

Definition at line 152 of file PalmCouplingPolicy.hxx.

                                                             {
        if (this != &dIt) {
          _pc=dIt._pc;_itTime=dIt._itTime;_itTag=dIt._itTag;
        }
        return *this;
      }
template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
bool PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::operator== ( const DataIdIterator< TTIME, TTAG > &  dIt) const [inline]

Definition at line 163 of file PalmCouplingPolicy.hxx.

                                                          {
        return (_itTime == dIt._itTime) && (_itTag == dIt._itTag) && (&_pc == &dIt._pc);
      }

Member Data Documentation

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
ItTag PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::_itTag [private]

Definition at line 133 of file PalmCouplingPolicy.hxx.

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
ItTime PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::_itTime [private]

Definition at line 132 of file PalmCouplingPolicy.hxx.

template<typename T_TIME, typename T_TAG>
template<typename TTIME , typename TTAG >
const InternalDataIdContainer<TTIME,TTAG>& PalmCouplingPolicy::InternalDataIdContainer< T_TIME, T_TAG >::DataIdIterator< TTIME, TTAG >::_pc [private]

Definition at line 134 of file PalmCouplingPolicy.hxx.


The documentation for this class was generated from the following file: