Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

std::safe_vector< T, Allo >::const_iterator Class Template Reference

#include <safe_vector.h>

Collaboration diagram for std::safe_vector< T, Allo >::const_iterator:

Collaboration graph
[legend]
List of all members.

Public Methods

void check_relevance () const
const T & operator * ()
bool operator== (const vector< T, Allo >::iterator &i)
bool operator== (const vector< T, Allo >::const_iterator &i)
bool operator!= (const vector< T, Allo >::iterator &i)
bool operator!= (const vector< T, Allo >::const_iterator &i)
 const_iterator (const vector< T, Allo >::const_iterator &i, const safe_vector< T, Allo > *id)
 const_iterator (const iterator &i)
const_iterator operator++ (int)
iterator operator+= (int i)
iterator operator-= (int i)
iterator operator++ ()
iterator operator-- ()

Public Attributes

const safe_vector< T, Allo > * v
int id

template<class T, class Allo = allocator <T>>
class std::safe_vector< T, Allo >::const_iterator


Constructor & Destructor Documentation

template<class T, class Allo = allocator <T>>
std::safe_vector< T, Allo >::const_iterator::const_iterator const vector< T, Allo >::const_iterator &    i,
const safe_vector< T, Allo > *    id
[inline]
 

00147                                                                                          :vector<T,Allo>::const_iterator(i) {
00148       this->v =id;
00149       this->id = id->id;
00150     }

template<class T, class Allo = allocator <T>>
std::safe_vector< T, Allo >::const_iterator::const_iterator const iterator   i [inline]
 

00151                                       : vector<T,Allo>::const_iterator(i) {
00152       v = i->v;
00153       id = i->id;
00154     }


Member Function Documentation

template<class T, class Allo = allocator <T>>
void std::safe_vector< T, Allo >::const_iterator::check_relevance   const [inline]
 

00121                                  {
00122       if (id!=v->id) {
00123         fprintf (stderr,__PRETTY_FUNCTION__);
00124         DIE_NOW();
00125       }   
00126     }

template<class T, class Allo = allocator <T>>
const T& std::safe_vector< T, Allo >::const_iterator::operator *   [inline]
 

00127                             {
00128       check_relevance();
00129       return (**((vector <T,Allo>::const_iterator*)this));
00130     }

template<class T, class Allo = allocator <T>>
bool std::safe_vector< T, Allo >::const_iterator::operator!= const vector< T, Allo >::const_iterator &    i [inline]
 

00143                                                              {
00144       check_relevance();
00145       return (*((vector<T,Allo>::const_iterator *)this))!=i;
00146     }

template<class T, class Allo = allocator <T>>
bool std::safe_vector< T, Allo >::const_iterator::operator!= const vector< T, Allo >::iterator   i [inline]
 

00139                                                        {
00140       check_relevance();
00141       return (*((vector<T,Allo>::const_iterator *)this))!=i;
00142     }

template<class T, class Allo = allocator <T>>
iterator std::safe_vector< T, Allo >::const_iterator::operator++   [inline]
 

00170                             {
00171       return (*this)+=1;
00172     }

template<class T, class Allo = allocator <T>>
const_iterator std::safe_vector< T, Allo >::const_iterator::operator++ int    [inline]
 

00156                                      {
00157       check_relevance();
00158       return (*((vector<T,Allo>::const_iterator *)this))++;
00159     }

template<class T, class Allo = allocator <T>>
iterator std::safe_vector< T, Allo >::const_iterator::operator+= int    i [inline]
 

00160                                 {
00161       (*((vector<T,Allo>::const_iterator *)this))+=i;
00162       check_relevance();
00163       return *this;
00164     }

template<class T, class Allo = allocator <T>>
iterator std::safe_vector< T, Allo >::const_iterator::operator--   [inline]
 

00173                             {
00174       return (*this)-=1;
00175     }

template<class T, class Allo = allocator <T>>
iterator std::safe_vector< T, Allo >::const_iterator::operator-= int    i [inline]
 

00165                                 {
00166       (*((vector<T,Allo>::const_iterator *)this))-=i;
00167       check_relevance();
00168       return *this;
00169     }

template<class T, class Allo = allocator <T>>
bool std::safe_vector< T, Allo >::const_iterator::operator== const vector< T, Allo >::const_iterator &    i [inline]
 

00135                                                              {
00136       check_relevance();
00137       return (*((vector<T,Allo>::const_iterator *)this))==i;
00138     }

template<class T, class Allo = allocator <T>>
bool std::safe_vector< T, Allo >::const_iterator::operator== const vector< T, Allo >::iterator   i [inline]
 

00131                                                        {
00132       check_relevance();
00133       return (*((vector<T,Allo>::const_iterator *)this))==i;
00134     }


Member Data Documentation

template<class T, class Allo = allocator <T>>
int std::safe_vector< T, Allo >::const_iterator::id
 

template<class T, class Allo = allocator <T>>
const safe_vector<T,Allo>* std::safe_vector< T, Allo >::const_iterator::v
 


The documentation for this class was generated from the following file:
Generated on Mon Jul 7 21:13:57 2003 for Ethereal by doxygen1.2.15