|
BDE 4.39.x Production Release
|
#include <bsltf_testvaluesarray.h>
This class provide a STL-conforming input iterator over values used for testing (see section [24.2.3 input.iterators] of the C++11 standard. A TestValuesArrayIterator provide access to elements of parameterized type VALUE. An iterator is considered dereferenceable all of the following are satisfied:
end).operator++ have been invoked. An iterator is comparable if the iterator is not a copy of another iterator of which operator++ have been invoked.This class is not thread-safe: different iterator objects manipulate shared state without synchronization. This is rarely a concern for the test scenarios supported by this component.
Public Types | |
| typedef std::input_iterator_tag | iterator_category |
| typedef VALUE | value_type |
| typedef ptrdiff_t | difference_type |
| typedef const VALUE * | pointer |
| typedef const VALUE & | reference |
Public Member Functions | |
| TestValuesArrayIterator () | |
| TestValuesArrayIterator (const VALUE *object, const VALUE *end, bool *dereferenceable, bool *isValid) | |
| TestValuesArrayIterator (const TestValuesArrayIterator &original) | |
| TestValuesArrayIterator & | operator= (const TestValuesArrayIterator &other) |
| TestValuesArrayIterator & | operator++ () |
| TestValuesArray_PostIncrementPtr< VALUE > | operator++ (int) |
| const VALUE & | operator* () const |
| const VALUE * | operator-> () const |
| const VALUE * | address () const |
Friends | |
| template<class OTHER_VALUE > | |
| bool | operator== (const TestValuesArrayIterator< OTHER_VALUE > &, const TestValuesArrayIterator< OTHER_VALUE > &) |
| template<class OTHER_VALUE > | |
| bool | operator!= (const TestValuesArrayIterator< OTHER_VALUE > &, const TestValuesArrayIterator< OTHER_VALUE > &) |
| template<class OTHER_VALUE > | |
| bool | operator== (const TestValuesArrayIterator< OTHER_VALUE > &, const TestValuesArraySentinel< OTHER_VALUE > &) |
| template<class OTHER_VALUE > | |
| bool | operator== (const TestValuesArraySentinel< OTHER_VALUE > &, const TestValuesArrayIterator< OTHER_VALUE > &) |
| template<class OTHER_VALUE > | |
| bool | operator!= (const TestValuesArrayIterator< OTHER_VALUE > &, const TestValuesArraySentinel< OTHER_VALUE > &) |
| template<class OTHER_VALUE > | |
| bool | operator!= (const TestValuesArraySentinel< OTHER_VALUE > &, const TestValuesArrayIterator< OTHER_VALUE > &) |
| typedef ptrdiff_t bsltf::TestValuesArrayIterator< VALUE >::difference_type |
| typedef std::input_iterator_tag bsltf::TestValuesArrayIterator< VALUE >::iterator_category |
| typedef const VALUE* bsltf::TestValuesArrayIterator< VALUE >::pointer |
| typedef const VALUE& bsltf::TestValuesArrayIterator< VALUE >::reference |
Standard iterator defined types [24.4.2].
| typedef VALUE bsltf::TestValuesArrayIterator< VALUE >::value_type |
|
inline |
Create a null-initialized iterator.
|
inline |
Create an iterator referring to the specified object for a container with the specified end, with two arrays of boolean referred to by the specified dereferenceable and isValid to indicate whether this iterator and its subsequent values until end is allowed to be dereferenced and is not yet invalidated respectively.
|
inline |
Create an iterator having the same value as the specified original object.
original is valid. | const VALUE * bsltf::TestValuesArrayIterator< VALUE >::address | ( | ) | const |
Return the position (address) referenced by this iterator.
|
inline |
Return the value referred to by this object. This object is no longer dereferenceable after a call to this function.
| TestValuesArrayIterator< VALUE > & bsltf::TestValuesArrayIterator< VALUE >::operator++ | ( | ) |
Move this iterator to the next element in the container. Any copies of this iterator are no longer dereferenceable or comparable.
| TestValuesArray_PostIncrementPtr< VALUE > bsltf::TestValuesArrayIterator< VALUE >::operator++ | ( | int | ) |
Move this iterator to the next element in the container, and return an object that can be dereferenced to refer to the same object that this iterator initially points to. Any copies of this iterator are no longer dereferenceable or comparable.
|
inline |
Return the address of the element (of the template parameter VALUE) at which this iterator is positioned.
| TestValuesArrayIterator< VALUE > & bsltf::TestValuesArrayIterator< VALUE >::operator= | ( | const TestValuesArrayIterator< VALUE > & | other | ) |
Assign to this object the value of the specified other object.
other is valid.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |