Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Friends

bsltf::InputIterator< TYPE > Class Template Reference

#include <bsltf_inputiterator.h>

Inheritance diagram for bsltf::InputIterator< TYPE >:
bdlb::TestInputIterator< TYPE >

List of all members.

Public Types

typedef std::input_iterator_tag iterator_category
typedef TYPE value_type
typedef std::ptrdiff_t difference_type
typedef TYPE * pointer
typedef TYPE & reference

Public Member Functions

 InputIterator ()
 InputIterator (TYPE *ptr)
InputIteratoroperator++ ()
InputIterator operator++ (int)
pointer operator-> () const
reference operator* () const

Friends

template<class TYPE2 >
bool operator== (const InputIterator< TYPE2 > &, const InputIterator< TYPE2 > &)
template<class TYPE2 >
bool operator!= (const InputIterator< TYPE2 > &, const InputIterator< TYPE2 > &)

template<class TYPE>
class bsltf::InputIterator< TYPE >


Member Typedef Documentation

template<class TYPE >
typedef std::input_iterator_tag bsltf::InputIterator< TYPE >::iterator_category
template<class TYPE >
typedef TYPE bsltf::InputIterator< TYPE >::value_type
template<class TYPE >
typedef std::ptrdiff_t bsltf::InputIterator< TYPE >::difference_type
template<class TYPE >
typedef TYPE* bsltf::InputIterator< TYPE >::pointer
template<class TYPE >
typedef TYPE& bsltf::InputIterator< TYPE >::reference

Constructor & Destructor Documentation

template<class TYPE >
bsltf::InputIterator< TYPE >::InputIterator (  ) 

Construct an empty input iterator.

template<class TYPE >
bsltf::InputIterator< TYPE >::InputIterator ( TYPE *  ptr  )  [explicit]

Construct an input iterator based on the specified ptr.


Member Function Documentation

template<class TYPE >
InputIterator& bsltf::InputIterator< TYPE >::operator++ (  ) 

Increment this iterator to refer to the next contiguous TYPE object, and return a reference to after the increment. The behavior is undefined if this iterator is empty.

template<class TYPE >
InputIterator bsltf::InputIterator< TYPE >::operator++ ( int   ) 

Copy this iterator, increment, and return by value the copy that was made prior to the increment. The behavior is undefined if this iterator is empty.

template<class TYPE >
pointer bsltf::InputIterator< TYPE >::operator-> (  )  const

Return a pointer to the TYPE object referred to by this iterator. The behavior is undefined if this iterator is empty.

template<class TYPE >
reference bsltf::InputIterator< TYPE >::operator* (  )  const

Return a const reference to the TYPE object referred to by this iterator. The behavior is undefined if this iterator is empty.


Friends And Related Function Documentation

template<class TYPE >
template<class TYPE2 >
bool operator== ( const InputIterator< TYPE2 > &  ,
const InputIterator< TYPE2 > &   
) [friend]
template<class TYPE >
template<class TYPE2 >
bool operator!= ( const InputIterator< TYPE2 > &  ,
const InputIterator< TYPE2 > &   
) [friend]

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