Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

iterator Class Reference

#include <cmt_vector_iterator.h>

Collaboration diagram for iterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 iterator ()
 iterator (cmt_vector &vector)
 iterator (const iterator &other)
iteratoroperator= (const iterator &other)
bool operator== (const iterator &other)
iteratoroperator++ ()
iteratoroperator-- ()
int operator- (const iterator *other)
iterator operator+ (int offset)
iterator operator- (int offset)
T & operator * ()

Private Attributes

int _index
cmt_vector_vector

Constructor & Destructor Documentation

iterator::iterator  )  [inline]
 

Definition at line 10 of file cmt_vector_iterator.h.

References _index, and _vector.

00011       {
00012         _index = 0;
00013         _vector = 0;
00014       }

iterator::iterator cmt_vector vector  )  [inline]
 

Definition at line 16 of file cmt_vector_iterator.h.

References _index, and _vector.

00017       {
00018         _index = 0;
00019         _vector = &vector;
00020       }

iterator::iterator const iterator other  )  [inline]
 

Definition at line 22 of file cmt_vector_iterator.h.

References _index, and _vector.

00023       {
00024         _index = other._index;
00025         _vector = other._vector;
00026       }


Member Function Documentation

T& iterator::operator *  )  [inline]
 

Definition at line 76 of file cmt_vector_iterator.h.

00077       {
00078         return ();
00079       };

iterator iterator::operator+ int  offset  )  [inline]
 

Definition at line 64 of file cmt_vector_iterator.h.

00065       {
00066         iterator it = *this;
00067         return (it);
00068       };

iterator& iterator::operator++  )  [inline]
 

Definition at line 44 of file cmt_vector_iterator.h.

References _index, and _vector.

00045       {
00046         if (_vector != 0)
00047           {
00048             _index++;
00049           }
00050 
00051         return (*this);
00052       };

iterator iterator::operator- int  offset  )  [inline]
 

Definition at line 70 of file cmt_vector_iterator.h.

00071       {
00072         iterator it = *this;
00073         return (it);
00074       };

int iterator::operator- const iterator other  )  [inline]
 

Definition at line 59 of file cmt_vector_iterator.h.

00060       {
00061         return (0);
00062       };

iterator& iterator::operator--  )  [inline]
 

Definition at line 54 of file cmt_vector_iterator.h.

00055       {
00056         return (*this);
00057       };

iterator& iterator::operator= const iterator other  )  [inline]
 

Definition at line 28 of file cmt_vector_iterator.h.

References _index, and _vector.

00029       {
00030         _index = other._index;
00031         _vector = other._vector;
00032 
00033         return (*this);
00034       }

bool iterator::operator== const iterator other  )  [inline]
 

Definition at line 36 of file cmt_vector_iterator.h.

References _index, and _vector.

00037       {
00038         if (_vector != other._vector) return (false);
00039         if (_index != other._index) return (false);
00040 
00041         return (true);
00042       }


Member Data Documentation

int iterator::_index [private]
 

Definition at line 82 of file cmt_vector_iterator.h.

Referenced by iterator(), operator++(), operator=(), and operator==().

cmt_vector* iterator::_vector [private]
 

Definition at line 83 of file cmt_vector_iterator.h.

Referenced by iterator(), operator++(), operator=(), and operator==().


The documentation for this class was generated from the following file:
Generated on Mon May 2 10:25:39 2005 for CMT by doxygen 1.3.5