rpa::bound_check< Iterator > Class Template Reference

#include <testing.h>

List of all members.

Public Types

typedef output_iterator_traits<
Iterator >::value_type 
value_type

Public Member Functions

 bound_check ()
 Writes a strange value, to detect the use of an invalid pointer.
 ~bound_check ()
 Writes a strange value to help errors tracing.
 bound_check (const bound_check &aBC)
 Plain copy constructor. It copies each member.
 bound_check (Iterator aIt, size_t aNb=0)
bound_checkoperator= (const bound_check &aBC)
 Simply copies all members.
value_typeoperator * (void)
 Same as the iterator dereferencement, with some error detection.
const value_typeoperator * (void) const
 Same as the iterator dereferencement, with some error detection.
bound_checkoperator++ (void)
 This will crash if we increment too much this operator.
bound_check operator++ (int)

Private Attributes

Iterator _It
size_t _Nb


Detailed Description

template<class Iterator>
class rpa::bound_check< Iterator >

For testing that an iterator cannot be incremented more than N times. This is mainly for debugging purpose, to be sure that an iterator is well used. Not all operators are implemented, because they are not needed yet.


Member Typedef Documentation

template<class Iterator>
typedef output_iterator_traits< Iterator >::value_type rpa::bound_check< Iterator >::value_type


Constructor & Destructor Documentation

template<class Iterator>
rpa::bound_check< Iterator >::bound_check (  )  [inline]

Writes a strange value, to detect the use of an invalid pointer.

template<class Iterator>
rpa::bound_check< Iterator >::~bound_check (  )  [inline]

Writes a strange value to help errors tracing.

template<class Iterator>
rpa::bound_check< Iterator >::bound_check ( const bound_check< Iterator > &  aBC  )  [inline]

Plain copy constructor. It copies each member.

template<class Iterator>
rpa::bound_check< Iterator >::bound_check ( Iterator  aIt,
size_t  aNb = 0 
) [inline]


Member Function Documentation

template<class Iterator>
const value_type& rpa::bound_check< Iterator >::operator * ( void   )  const [inline]

Same as the iterator dereferencement, with some error detection.

template<class Iterator>
value_type& rpa::bound_check< Iterator >::operator * ( void   )  [inline]

Same as the iterator dereferencement, with some error detection.

template<class Iterator>
bound_check rpa::bound_check< Iterator >::operator++ ( int   )  [inline]

template<class Iterator>
bound_check& rpa::bound_check< Iterator >::operator++ ( void   )  [inline]

This will crash if we increment too much this operator.

template<class Iterator>
bound_check& rpa::bound_check< Iterator >::operator= ( const bound_check< Iterator > &  aBC  )  [inline]

Simply copies all members.


Member Data Documentation

template<class Iterator>
Iterator rpa::bound_check< Iterator >::_It [private]

template<class Iterator>
size_t rpa::bound_check< Iterator >::_Nb [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:39 2007 for rpa by  doxygen 1.4.7