cgma
ManagedPtrVector< X >::iterator Class Reference

#include <ManagedPtrVector.hpp>

List of all members.

Public Types

typedef iterator this_type
typedef Xreference
typedef size_t size_type
typedef size_t difference_type

Public Member Functions

 iterator ()
 iterator (const this_type &rhs)
 iterator (const typename ManagedPtrVector< X >::container_type::iterator &rhs)
 ~iterator ()
Xoperator-> ()
reference operator* () const
bool operator== (const this_type &rhs) const
bool operator!= (const this_type &rhs) const
this_typeoperator++ ()
this_type operator++ (int)
this_typeoperator-- ()
this_type operator-- (int)
this_type operator+ (difference_type n)
this_typeoperator+= (difference_type n)
this_typeoperator-= (difference_type n)
reference operator[] (difference_type i) const

Private Attributes

ManagedPtrVector< X >
::container_type::iterator 
mIter

Detailed Description

template<typename X>
class ManagedPtrVector< X >::iterator

Definition at line 21 of file ManagedPtrVector.hpp.


Member Typedef Documentation

template<typename X>
typedef size_t ManagedPtrVector< X >::iterator::difference_type

Definition at line 27 of file ManagedPtrVector.hpp.

template<typename X>
typedef X& ManagedPtrVector< X >::iterator::reference

Definition at line 25 of file ManagedPtrVector.hpp.

template<typename X>
typedef size_t ManagedPtrVector< X >::iterator::size_type

Definition at line 26 of file ManagedPtrVector.hpp.

template<typename X>
typedef iterator ManagedPtrVector< X >::iterator::this_type

Definition at line 24 of file ManagedPtrVector.hpp.


Constructor & Destructor Documentation

template<typename X>
ManagedPtrVector< X >::iterator::iterator ( ) [inline]

Definition at line 29 of file ManagedPtrVector.hpp.

      {}
template<typename X>
ManagedPtrVector< X >::iterator::iterator ( const this_type rhs) [inline]

Definition at line 31 of file ManagedPtrVector.hpp.

        :mIter(rhs.mIter)
      {}
template<typename X>
ManagedPtrVector< X >::iterator::iterator ( const typename ManagedPtrVector< X >::container_type::iterator &  rhs) [inline]

Definition at line 34 of file ManagedPtrVector.hpp.

        : mIter(rhs)
      {}
template<typename X>
ManagedPtrVector< X >::iterator::~iterator ( ) [inline]

Definition at line 37 of file ManagedPtrVector.hpp.

      {}

Member Function Documentation

template<typename X>
bool ManagedPtrVector< X >::iterator::operator!= ( const this_type rhs) const [inline]

Definition at line 47 of file ManagedPtrVector.hpp.

      { return this->mIter != rhs.mIter; }
template<typename X>
reference ManagedPtrVector< X >::iterator::operator* ( ) const [inline]

Definition at line 42 of file ManagedPtrVector.hpp.

      { return **mIter; }
template<typename X>
this_type ManagedPtrVector< X >::iterator::operator+ ( difference_type  n) [inline]

Definition at line 76 of file ManagedPtrVector.hpp.

    {
      this_type rv = *this;
      rv += n;
      return rv;
    }
template<typename X>
this_type& ManagedPtrVector< X >::iterator::operator++ ( ) [inline]

Definition at line 50 of file ManagedPtrVector.hpp.

      {
        ++mIter;
        return *this;
      }
template<typename X>
this_type ManagedPtrVector< X >::iterator::operator++ ( int  ) [inline]

Definition at line 56 of file ManagedPtrVector.hpp.

      {
        this_type rv = *this;
        ++mIter;
        return rv;
      }
template<typename X>
this_type& ManagedPtrVector< X >::iterator::operator+= ( difference_type  n) [inline]

Definition at line 83 of file ManagedPtrVector.hpp.

      {
        mIter += n;
        return *this;
      }
template<typename X>
this_type& ManagedPtrVector< X >::iterator::operator-- ( ) [inline]

Definition at line 63 of file ManagedPtrVector.hpp.

      {
        --mIter;
        return *this;
      }
template<typename X>
this_type ManagedPtrVector< X >::iterator::operator-- ( int  ) [inline]

Definition at line 69 of file ManagedPtrVector.hpp.

      {
        this_type rv = *this;
        --mIter;
        return rv;
      }
template<typename X>
this_type& ManagedPtrVector< X >::iterator::operator-= ( difference_type  n) [inline]

Definition at line 89 of file ManagedPtrVector.hpp.

      {
        mIter -= n;
        return *this;
      }
template<typename X>
X* ManagedPtrVector< X >::iterator::operator-> ( ) [inline]

Definition at line 40 of file ManagedPtrVector.hpp.

      { return *mIter; }
template<typename X>
bool ManagedPtrVector< X >::iterator::operator== ( const this_type rhs) const [inline]

Definition at line 45 of file ManagedPtrVector.hpp.

      { return this->mIter == rhs.mIter; }
template<typename X>
reference ManagedPtrVector< X >::iterator::operator[] ( difference_type  i) const [inline]

Definition at line 95 of file ManagedPtrVector.hpp.

      {
        return reference(*(mIter+i));
      }

Member Data Documentation

template<typename X>
ManagedPtrVector<X>::container_type::iterator ManagedPtrVector< X >::iterator::mIter [private]

Definition at line 101 of file ManagedPtrVector.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines