#include <carray.h>
Public Types | |
typedef std::random_access_iterator_tag | iterator_category |
typedef T | value_type |
typedef int | difference_type |
typedef T * | pointer |
typedef T & | reference |
Public Member Functions | |
CArrayIterator (T *p) | |
CArrayIterator (const CArrayIterator< typename boost::remove_cv< T >::type > &src) | |
T & | operator* () const |
T * | operator-> () const |
CArrayIterator & | operator+= (int diff) |
CArrayIterator & | operator-= (int diff) |
CArrayIterator & | operator++ () |
CArrayIterator | operator++ (int) |
CArrayIterator & | operator-- () |
CArrayIterator | operator-- (int) |
Public Attributes | |
T * | ptr |
Private Member Functions | |
operator bool () | |
CArray の iterator.
単純にT*を使うと, if (iter == end()) と書くべきところで ポインタのつもりで if (iter) と書いてしまっても気付けないため. TODO: boost にない?
typedef int osl::misc::CArrayIterator< T >::difference_type |
typedef std::random_access_iterator_tag osl::misc::CArrayIterator< T >::iterator_category |
typedef T* osl::misc::CArrayIterator< T >::pointer |
typedef T& osl::misc::CArrayIterator< T >::reference |
typedef T osl::misc::CArrayIterator< T >::value_type |
|
inline |
|
inline |
|
private |
|
inline |
Definition at line 40 of file carray.h.
References osl::misc::CArrayIterator< T >::ptr.
|
inline |
Definition at line 48 of file carray.h.
References osl::misc::CArrayIterator< T >::operator+=().
Referenced by osl::misc::CArrayIterator< T >::operator++().
|
inline |
Definition at line 49 of file carray.h.
References osl::misc::CArrayIterator< T >::operator++(), and result.
|
inline |
Definition at line 42 of file carray.h.
References osl::misc::CArrayIterator< T >::ptr.
Referenced by osl::misc::CArrayIterator< T >::operator++(), osl::misc::CArrayIterator< T >::operator--(), and osl::misc::CArrayIterator< T >::operator-=().
|
inline |
Definition at line 55 of file carray.h.
References osl::misc::CArrayIterator< T >::operator+=().
Referenced by osl::misc::CArrayIterator< T >::operator--().
|
inline |
Definition at line 56 of file carray.h.
References osl::misc::CArrayIterator< T >::operator--(), and result.
|
inline |
Definition at line 47 of file carray.h.
References osl::misc::CArrayIterator< T >::operator+=().
|
inline |
Definition at line 41 of file carray.h.
References osl::misc::CArrayIterator< T >::ptr.
T* osl::misc::CArrayIterator< T >::ptr |
Definition at line 35 of file carray.h.
Referenced by osl::misc::operator!=(), osl::misc::CArrayIterator< T >::operator*(), osl::misc::CArrayIterator< T >::operator+=(), osl::misc::operator-(), osl::misc::CArrayIterator< T >::operator->(), osl::misc::operator<(), osl::misc::operator==(), and osl::misc::operator>().