Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Private Attributes
mrpt::utils::metaprogramming::MemoryBypasserIterator Class Reference

Detailed Description

This class bypasses pointer access in iterators to pointers, thus allowing the use of algorithms that expect an object of class T with containers of T*.

Although it may be used directly, use the bypassPointer function for better results and readability (since it most probably won't require template arguments).

#include <mrpt/utils/metaprogramming.h>

List of all members.

Public Types

typedef T::iterator_category iterator_category
typedef U value_type
typedef T::difference_type difference_type
typedef U * pointer
typedef U & reference

Public Member Functions

 MemoryBypasserIterator (const T &bi)
reference operator* ()
MemoryBypasserIterator< T, U > & operator++ ()
MemoryBypasserIterator< T, U > operator++ (int)
MemoryBypasserIterator< T, U > & operator-- ()
MemoryBypasserIterator< T, U > operator-- (int)
MemoryBypasserIterator< T, U > & operator+= (difference_type off)
MemoryBypasserIterator< T, U > operator+ (difference_type off) const
MemoryBypasserIterator< T, U > & operator-= (difference_type off)
MemoryBypasserIterator< T, U > operator- (difference_type off) const
difference_type operator- (const MemoryBypasserIterator< T, U > &it) const
reference operator[] (difference_type off) const
bool operator== (const MemoryBypasserIterator< T, U > &i) const
bool operator!= (const MemoryBypasserIterator< T, U > &i) const
bool operator< (const MemoryBypasserIterator< T, U > &i) const

Private Attributes

baseIterator

Member Typedef Documentation

Definition at line 207 of file metaprogramming.h.

Definition at line 205 of file metaprogramming.h.

Definition at line 208 of file metaprogramming.h.

Definition at line 209 of file metaprogramming.h.

Definition at line 206 of file metaprogramming.h.


Constructor & Destructor Documentation

mrpt::utils::metaprogramming::MemoryBypasserIterator::MemoryBypasserIterator ( const T &  bi) [inline]

Definition at line 210 of file metaprogramming.h.


Member Function Documentation

bool mrpt::utils::metaprogramming::MemoryBypasserIterator::operator!= ( const MemoryBypasserIterator< T, U > &  i) const [inline]

Definition at line 255 of file metaprogramming.h.

References baseIterator.

reference mrpt::utils::metaprogramming::MemoryBypasserIterator::operator* ( void  ) [inline]

Definition at line 211 of file metaprogramming.h.

MemoryBypasserIterator<T,U> mrpt::utils::metaprogramming::MemoryBypasserIterator::operator+ ( difference_type  off) const [inline]

Definition at line 236 of file metaprogramming.h.

MemoryBypasserIterator<T,U>& mrpt::utils::metaprogramming::MemoryBypasserIterator::operator++ ( ) [inline]

Definition at line 214 of file metaprogramming.h.

References baseIterator.

MemoryBypasserIterator<T,U> mrpt::utils::metaprogramming::MemoryBypasserIterator::operator++ ( int  ) [inline]

Definition at line 218 of file metaprogramming.h.

References baseIterator.

MemoryBypasserIterator<T,U>& mrpt::utils::metaprogramming::MemoryBypasserIterator::operator+= ( difference_type  off) [inline]

Definition at line 232 of file metaprogramming.h.

References baseIterator.

MemoryBypasserIterator<T,U> mrpt::utils::metaprogramming::MemoryBypasserIterator::operator- ( difference_type  off) const [inline]

Definition at line 243 of file metaprogramming.h.

difference_type mrpt::utils::metaprogramming::MemoryBypasserIterator::operator- ( const MemoryBypasserIterator< T, U > &  it) const [inline]

Definition at line 246 of file metaprogramming.h.

References baseIterator.

MemoryBypasserIterator<T,U>& mrpt::utils::metaprogramming::MemoryBypasserIterator::operator-- ( ) [inline]

Definition at line 223 of file metaprogramming.h.

References baseIterator.

MemoryBypasserIterator<T,U> mrpt::utils::metaprogramming::MemoryBypasserIterator::operator-- ( int  ) [inline]

Definition at line 227 of file metaprogramming.h.

References baseIterator.

MemoryBypasserIterator<T,U>& mrpt::utils::metaprogramming::MemoryBypasserIterator::operator-= ( difference_type  off) [inline]

Definition at line 239 of file metaprogramming.h.

References baseIterator.

bool mrpt::utils::metaprogramming::MemoryBypasserIterator::operator< ( const MemoryBypasserIterator< T, U > &  i) const [inline]

Definition at line 258 of file metaprogramming.h.

References baseIterator.

bool mrpt::utils::metaprogramming::MemoryBypasserIterator::operator== ( const MemoryBypasserIterator< T, U > &  i) const [inline]

Definition at line 252 of file metaprogramming.h.

References baseIterator.

reference mrpt::utils::metaprogramming::MemoryBypasserIterator::operator[] ( difference_type  off) const [inline]

Definition at line 249 of file metaprogramming.h.


Member Data Documentation




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011