Rosetta Utilities  2014.35
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
utility::fixedsizearray1iterator< T, S > Class Template Reference

#include <fixedsizearray1.hh>

Public Types

typedef
std::random_access_iterator_tag 
iterator_category
 
typedef ptrdiff_t difference_type
 
typedefvalue_type
 
typedef T * pointer
 
typedef T & reference
 
typedef ptrdiff_t distance
 

Public Member Functions

 fixedsizearray1iterator (T *array_ptr, T *position)
 
 fixedsizearray1iterator (fixedsizearray1iterator< T, S > const &other)
 
fixedsizearray1iterator< T, S > operator= (fixedsizearray1iterator< T, S > const &rhs)
 
T & operator* ()
 
fixedsizearray1iterator< T, S > operator++ ()
 
fixedsizearray1iterator< T, S > operator+ (distance d)
 random access iterator jump by d More...
 
fixedsizearray1iterator< T, S > operator- (distance d)
 random access iterator jump by -d More...
 
distance operator- (fixedsizearray1const_iterator< T, S > const &other) const
 
fixedsizearray1iterator< T, S >
const & 
operator+= (distance d)
 random access increment More...
 
fixedsizearray1iterator< T, S >
const & 
operator-= (distance d)
 random access decrement More...
 
bool operator== (fixedsizearray1iterator< T, S > const &rhs)
 
bool operator!= (fixedsizearray1iterator< T, S > const &rhs)
 
bool operator< (fixedsizearray1iterator< T, S > const &rhs)
 < comparison More...
 
bool operator<= (fixedsizearray1iterator< T, S > const &rhs)
 <= comparison More...
 
bool operator> (fixedsizearray1iterator< T, S > const &rhs)
 

comparison

More...
 
bool operator>= (fixedsizearray1iterator< T, S > const &rhs)
 >= comparison More...
 

Protected Member Functions

bool valid () const
 

Private Attributes

T * array_ptr_
 
T * position_
 

Friends

class fixedsizearray1const_iterator< T, S >
 
bool operator< (fixedsizearray1iterator< T, S > const &a, fixedsizearray1iterator< T, S > const &b)
 

Detailed Description

template<typename T, platform::Size S>
class utility::fixedsizearray1iterator< T, S >

Requirements: S must be a positive integer T must be interpretable as 0

Member Typedef Documentation

template<typename T , platform::Size S>
typedef ptrdiff_t utility::fixedsizearray1iterator< T, S >::difference_type
template<typename T , platform::Size S>
typedef ptrdiff_t utility::fixedsizearray1iterator< T, S >::distance
template<typename T , platform::Size S>
typedef std::random_access_iterator_tag utility::fixedsizearray1iterator< T, S >::iterator_category
template<typename T , platform::Size S>
typedef T* utility::fixedsizearray1iterator< T, S >::pointer
template<typename T , platform::Size S>
typedef T& utility::fixedsizearray1iterator< T, S >::reference
template<typename T , platform::Size S>
typedef T utility::fixedsizearray1iterator< T, S >::value_type

Constructor & Destructor Documentation

template<typename T , platform::Size S>
utility::fixedsizearray1iterator< T, S >::fixedsizearray1iterator ( T *  array_ptr,
T *  position 
)
inline
template<typename T , platform::Size S>
utility::fixedsizearray1iterator< T, S >::fixedsizearray1iterator ( fixedsizearray1iterator< T, S > const &  other)
inline

Member Function Documentation

template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::operator!= ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
T& utility::fixedsizearray1iterator< T, S >::operator* ( )
inline
template<typename T , platform::Size S>
fixedsizearray1iterator< T, S > utility::fixedsizearray1iterator< T, S >::operator+ ( distance  d)
inline
template<typename T , platform::Size S>
fixedsizearray1iterator< T, S > utility::fixedsizearray1iterator< T, S >::operator++ ( )
inline
template<typename T , platform::Size S>
fixedsizearray1iterator< T, S > const& utility::fixedsizearray1iterator< T, S >::operator+= ( distance  d)
inline
template<typename T , platform::Size S>
fixedsizearray1iterator< T, S > utility::fixedsizearray1iterator< T, S >::operator- ( distance  d)
inline
template<typename T , platform::Size S>
distance utility::fixedsizearray1iterator< T, S >::operator- ( fixedsizearray1const_iterator< T, S > const &  other) const
template<typename T , platform::Size S>
fixedsizearray1iterator< T, S > const& utility::fixedsizearray1iterator< T, S >::operator-= ( distance  d)
inline
template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::operator< ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::operator<= ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
fixedsizearray1iterator< T, S > utility::fixedsizearray1iterator< T, S >::operator= ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::operator== ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::operator> ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::operator>= ( fixedsizearray1iterator< T, S > const &  rhs)
inline
template<typename T , platform::Size S>
bool utility::fixedsizearray1iterator< T, S >::valid ( ) const
inlineprotected

Friends And Related Function Documentation

template<typename T , platform::Size S>
friend class fixedsizearray1const_iterator< T, S >
friend
template<typename T , platform::Size S>
bool operator< ( fixedsizearray1iterator< T, S > const &  a,
fixedsizearray1iterator< T, S > const &  b 
)
friend

Member Data Documentation

template<typename T , platform::Size S>
T* utility::fixedsizearray1iterator< T, S >::array_ptr_
private
template<typename T , platform::Size S>
T* utility::fixedsizearray1iterator< T, S >::position_
private

The documentation for this class was generated from the following files: