All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes | Private Member Functions
osl::misc::CArrayIterator< T > Struct Template Reference

CArray の iterator. More...

#include <carray.h>

List of all members.

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
CArrayIteratoroperator+= (int diff)
CArrayIteratoroperator-= (int diff)
CArrayIteratoroperator++ ()
CArrayIterator operator++ (int)
CArrayIteratoroperator-- ()
CArrayIterator operator-- (int)

Public Attributes

T * ptr

Private Member Functions

 operator bool ()

Detailed Description

template<typename T>
struct osl::misc::CArrayIterator< T >

CArray の iterator.

単純にT*を使うと, if (iter == end()) と書くべきところで ポインタのつもりで if (iter) と書いてしまっても気付けないため. TODO: boost にない?

Definition at line 27 of file carray.h.


Member Typedef Documentation

template<typename T>
typedef int osl::misc::CArrayIterator< T >::difference_type

Definition at line 31 of file carray.h.

template<typename T>
typedef std::random_access_iterator_tag osl::misc::CArrayIterator< T >::iterator_category

Definition at line 29 of file carray.h.

template<typename T>
typedef T* osl::misc::CArrayIterator< T >::pointer

Definition at line 32 of file carray.h.

template<typename T>
typedef T& osl::misc::CArrayIterator< T >::reference

Definition at line 33 of file carray.h.

template<typename T>
typedef T osl::misc::CArrayIterator< T >::value_type

Definition at line 30 of file carray.h.


Constructor & Destructor Documentation

template<typename T>
osl::misc::CArrayIterator< T >::CArrayIterator ( T *  p) [inline]

Definition at line 36 of file carray.h.

template<typename T>
osl::misc::CArrayIterator< T >::CArrayIterator ( const CArrayIterator< typename boost::remove_cv< T >::type > &  src) [inline]

Definition at line 37 of file carray.h.


Member Function Documentation

template<typename T>
osl::misc::CArrayIterator< T >::operator bool ( ) [private]
template<typename T>
T& osl::misc::CArrayIterator< T >::operator* ( ) const [inline]

Definition at line 40 of file carray.h.

References osl::misc::CArrayIterator< T >::ptr.

template<typename T>
CArrayIterator& osl::misc::CArrayIterator< T >::operator++ ( ) [inline]
template<typename T>
CArrayIterator osl::misc::CArrayIterator< T >::operator++ ( int  ) [inline]

Definition at line 49 of file carray.h.

References osl::misc::CArrayIterator< T >::operator++(), and result.

template<typename T>
CArrayIterator& osl::misc::CArrayIterator< T >::operator+= ( int  diff) [inline]
template<typename T>
CArrayIterator& osl::misc::CArrayIterator< T >::operator-- ( ) [inline]
template<typename T>
CArrayIterator osl::misc::CArrayIterator< T >::operator-- ( int  ) [inline]

Definition at line 56 of file carray.h.

References osl::misc::CArrayIterator< T >::operator--(), and result.

template<typename T>
CArrayIterator& osl::misc::CArrayIterator< T >::operator-= ( int  diff) [inline]

Definition at line 47 of file carray.h.

References osl::misc::CArrayIterator< T >::operator+=().

template<typename T>
T* osl::misc::CArrayIterator< T >::operator-> ( ) const [inline]

Definition at line 41 of file carray.h.

References osl::misc::CArrayIterator< T >::ptr.


Member Data Documentation

template<typename T>
T* osl::misc::CArrayIterator< T >::ptr

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines