#include <stl_bvector.h>
Inheritance diagram for __bit_const_iterator:


Public Types | |
| typedef bool | reference |
| typedef bool | const_reference |
| typedef const bool * | pointer |
| typedef __bit_const_iterator | const_iterator |
Public Methods | |
| void | bump_up () |
| void | bump_down () |
| __bit_const_iterator () | |
| __bit_const_iterator (unsigned int *x, unsigned int y) | |
| __bit_const_iterator (const __bit_iterator &x) | |
| const_reference | operator * () const |
| const_iterator & | operator++ () |
| const_iterator | operator++ (int) |
| const_iterator & | operator-- () |
| const_iterator | operator-- (int) |
| const_iterator & | operator+= (difference_type i) |
| const_iterator & | operator-= (difference_type i) |
| const_iterator | operator+ (difference_type i) const |
| const_iterator | operator- (difference_type i) const |
| difference_type | operator- (const_iterator x) const |
| const_reference | operator[] (difference_type i) |
| bool | operator== (const const_iterator &x) const |
| bool | operator!= (const const_iterator &x) const |
| bool | operator< (const_iterator x) const |
Public Attributes | |
| unsigned int * | p |
| unsigned int | offset |
|
|
Definition at line 158 of file stl_bvector.h. |
|
|
Definition at line 156 of file stl_bvector.h. Referenced by operator *, and operator[]. |
|
|
Reimplemented from random_access_iterator< bool, ptrdiff_t >. Definition at line 157 of file stl_bvector.h. |
|
|
Reimplemented from random_access_iterator< bool, ptrdiff_t >. Definition at line 155 of file stl_bvector.h. |
|
|
Definition at line 175 of file stl_bvector.h.
|
|
||||||||||||
|
Definition at line 176 of file stl_bvector.h.
|
|
|
Definition at line 177 of file stl_bvector.h.
|
|
|
Definition at line 168 of file stl_bvector.h. References __WORD_BIT, offset, and p. Referenced by operator--.
00168 {
00169 if (offset-- == 0) {
00170 offset = __WORD_BIT - 1;
00171 --p;
00172 }
00173 }
|
|
|
Definition at line 162 of file stl_bvector.h. References __WORD_BIT, offset, and p. Referenced by operator++.
00162 {
00163 if (offset++ == __WORD_BIT - 1) {
00164 offset = 0;
00165 ++p;
00166 }
00167 }
|
|
|
Definition at line 178 of file stl_bvector.h. References const_reference, offset, and p.
00178 {
00179 return __bit_reference(p, 1U << offset);
00180 }
|
|
|
Definition at line 231 of file stl_bvector.h.
|
|
|
Definition at line 214 of file stl_bvector.h. References random_access_iterator< bool, ptrdiff_t >::difference_type.
00214 {
00215 const_iterator tmp = *this;
00216 return tmp += i;
00217 }
|
|
|
Definition at line 185 of file stl_bvector.h. References bump_up.
00185 {
00186 const_iterator tmp = *this;
00187 bump_up();
00188 return tmp;
00189 }
|
|
|
Definition at line 181 of file stl_bvector.h. References bump_up.
00181 {
00182 bump_up();
00183 return *this;
00184 }
|
|
|
Definition at line 199 of file stl_bvector.h. References __WORD_BIT, random_access_iterator< bool, ptrdiff_t >::difference_type, offset, and p.
00199 {
00200 difference_type n = i + offset;
00201 p += n / __WORD_BIT;
00202 n = n % __WORD_BIT;
00203 if (n < 0) {
00204 offset = (unsigned int) n + __WORD_BIT;
00205 --p;
00206 } else
00207 offset = (unsigned int) n;
00208 return *this;
00209 }
|
|
|
Definition at line 222 of file stl_bvector.h. References __WORD_BIT, random_access_iterator< bool, ptrdiff_t >::difference_type, offset, and p.
00222 {
00223 return __WORD_BIT * (p - x.p) + offset - x.offset;
00224 }
|
|
|
Definition at line 218 of file stl_bvector.h. References random_access_iterator< bool, ptrdiff_t >::difference_type.
00218 {
00219 const_iterator tmp = *this;
00220 return tmp -= i;
00221 }
|
|
|
Definition at line 194 of file stl_bvector.h. References bump_down.
00194 {
00195 const_iterator tmp = *this;
00196 bump_down();
00197 return tmp;
00198 }
|
|
|
Definition at line 190 of file stl_bvector.h. References bump_down.
00190 {
00191 bump_down();
00192 return *this;
00193 }
|
|
|
Definition at line 210 of file stl_bvector.h. References random_access_iterator< bool, ptrdiff_t >::difference_type.
00210 {
00211 *this += -i;
00212 return *this;
00213 }
|
|
|
Definition at line 234 of file stl_bvector.h.
|
|
|
Definition at line 228 of file stl_bvector.h.
|
|
|
Definition at line 225 of file stl_bvector.h. References const_reference, and random_access_iterator< bool, ptrdiff_t >::difference_type.
00225 {
00226 return *(*this + i);
00227 }
|
|
|
Definition at line 161 of file stl_bvector.h. Referenced by __bit_const_iterator, bump_down, bump_up, operator *, operator!=, operator+=, operator-, operator<, and operator==. |
|
|
Definition at line 160 of file stl_bvector.h. Referenced by __bit_const_iterator, bump_down, bump_up, operator *, operator!=, operator+=, operator-, operator<, and operator==. |
| Documentation generated on Thu May 2 15:03:14 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |