BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf::InputIterator< TYPE > Class Template Reference

#include <bsltf_inputiterator.h>

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

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 ()
 Construct an empty input iterator.
 
 InputIterator (TYPE *ptr)
 Construct an input iterator based on the specified 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 > &)
 

Member Typedef Documentation

◆ difference_type

template<class TYPE >
typedef std::ptrdiff_t bsltf::InputIterator< TYPE >::difference_type

◆ iterator_category

template<class TYPE >
typedef std::input_iterator_tag bsltf::InputIterator< TYPE >::iterator_category

◆ pointer

template<class TYPE >
typedef TYPE* bsltf::InputIterator< TYPE >::pointer

◆ reference

template<class TYPE >
typedef TYPE& bsltf::InputIterator< TYPE >::reference

◆ value_type

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

Constructor & Destructor Documentation

◆ InputIterator() [1/2]

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

◆ InputIterator() [2/2]

template<class TYPE >
bsltf::InputIterator< TYPE >::InputIterator ( TYPE *  ptr)
inlineexplicit

Member Function Documentation

◆ operator*()

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

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

◆ operator++() [1/2]

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

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.

◆ operator++() [2/2]

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

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.

◆ operator->()

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

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

Friends And Related Symbol Documentation

◆ operator!=

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

◆ operator==

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: