#include <cmt_vector_iterator.h>
Collaboration diagram for iterator:

Public Methods | |
| iterator () | |
| iterator (cmt_vector& vector) | |
| iterator (const iterator& other) | |
| iterator& | operator= (const iterator& other) |
| bool | operator== (const iterator& other) |
| iterator& | operator++ () |
| iterator& | operator-- () |
| int | operator- (const iterator* other) |
| iterator | operator+ (int offset) |
| iterator | operator- (int offset) |
| T& | operator * () |
Private Attributes | |
| int | _index |
| cmt_vector* | _vector |
|
|
Definition at line 4 of file cmt_vector_iterator.h. 00005 {
00006 _index = 0;
00007 _vector = 0;
00008 }
|
|
|
Definition at line 10 of file cmt_vector_iterator.h. 00011 {
00012 _index = 0;
00013 _vector = &vector;
00014 }
|
|
|
Definition at line 16 of file cmt_vector_iterator.h. 00017 {
00018 _index = other._index;
00019 _vector = other._vector;
00020 }
|
|
|
Definition at line 70 of file cmt_vector_iterator.h. 00071 {
00072 return ();
00073 }
|
|
|
Definition at line 58 of file cmt_vector_iterator.h. 00059 {
00060 iterator it = *this;
00061 return (it);
00062 }
|
|
|
Definition at line 38 of file cmt_vector_iterator.h. 00039 {
00040 if (_vector != 0)
00041 {
00042 _index++;
00043 }
00044
00045 return (*this);
00046 }
|
|
|
Definition at line 64 of file cmt_vector_iterator.h. 00065 {
00066 iterator it = *this;
00067 return (it);
00068 }
|
|
|
Definition at line 53 of file cmt_vector_iterator.h. 00054 {
00055 return (0);
00056 }
|
|
|
Definition at line 48 of file cmt_vector_iterator.h. 00049 {
00050 return (*this);
00051 }
|
|
|
Definition at line 22 of file cmt_vector_iterator.h. 00023 {
00024 _index = other._index;
00025 _vector = other._vector;
00026
00027 return (*this);
00028 }
|
|
|
Definition at line 30 of file cmt_vector_iterator.h. 00031 {
00032 if (_vector != other._vector) return (false);
00033 if (_index != other._index) return (false);
00034
00035 return (true);
00036 }
|
|
|
Definition at line 76 of file cmt_vector_iterator.h. |
|
|
Definition at line 77 of file cmt_vector_iterator.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000