Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Meets requirements of a forward iterator for STL and a Value for a blocked_range.*/. More...
#include <concurrent_vector.h>
Public Types | |
typedef ptrdiff_t | difference_type |
typedef Value | value_type |
typedef Value * | pointer |
typedef Value & | reference |
typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
vector_iterator () | |
Default constructor. More... | |
vector_iterator (const vector_iterator< Container, typename Container::value_type > &other) | |
vector_iterator & | operator= (const vector_iterator< Container, typename Container::value_type > &other) |
vector_iterator | operator+ (ptrdiff_t offset) const |
vector_iterator & | operator+= (ptrdiff_t offset) |
vector_iterator | operator- (ptrdiff_t offset) const |
vector_iterator & | operator-= (ptrdiff_t offset) |
Value & | operator * () const |
Value & | operator[] (ptrdiff_t k) const |
Value * | operator-> () const |
vector_iterator & | operator++ () |
Pre increment. More... | |
vector_iterator & | operator-- () |
Pre decrement. More... | |
vector_iterator | operator++ (int) |
Post increment. More... | |
vector_iterator | operator-- (int) |
Post decrement. More... | |
Private Member Functions | |
vector_iterator (const Container &vector, size_t index, void *ptr=0) | |
Private Attributes | |
Container * | my_vector |
concurrent_vector over which we are iterating. More... | |
size_t | my_index |
Index into the vector. More... | |
Value * | my_item |
Caches my_vector->internal_subscript(my_index) More... | |
Friends | |
template<typename C , typename U > | |
class | internal::vector_iterator |
template<typename T , class A > | |
class | tbb::concurrent_vector |
template<typename C , typename T > | |
vector_iterator< C, T > | operator+ (ptrdiff_t offset, const vector_iterator< C, T > &v) |
template<typename C , typename T , typename U > | |
bool | operator== (const vector_iterator< C, T > &i, const vector_iterator< C, U > &j) |
template<typename C , typename T , typename U > | |
bool | operator< (const vector_iterator< C, T > &i, const vector_iterator< C, U > &j) |
template<typename C , typename T , typename U > | |
ptrdiff_t | operator- (const vector_iterator< C, T > &i, const vector_iterator< C, U > &j) |
Meets requirements of a forward iterator for STL and a Value for a blocked_range.*/.
Value is either the T or const T type of the container.
Definition at line 70 of file concurrent_vector.h.
typedef ptrdiff_t tbb::internal::vector_iterator< Container, Value >::difference_type |
Definition at line 429 of file concurrent_vector.h.
typedef std::random_access_iterator_tag tbb::internal::vector_iterator< Container, Value >::iterator_category |
Definition at line 433 of file concurrent_vector.h.
typedef Value* tbb::internal::vector_iterator< Container, Value >::pointer |
Definition at line 431 of file concurrent_vector.h.
typedef Value& tbb::internal::vector_iterator< Container, Value >::reference |
Definition at line 432 of file concurrent_vector.h.
typedef Value tbb::internal::vector_iterator< Container, Value >::value_type |
Definition at line 430 of file concurrent_vector.h.
|
inlineprivate |
Definition at line 328 of file concurrent_vector.h.
|
inline |
Default constructor.
Definition at line 336 of file concurrent_vector.h.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator+(), and tbb::internal::vector_iterator< Container, Value >::operator-().
|
inline |
Definition at line 338 of file concurrent_vector.h.
|
inline |
Definition at line 368 of file concurrent_vector.h.
References __TBB_ASSERT, tbb::internal::vector_iterator< Container, Value >::my_index, tbb::internal::vector_iterator< Container, Value >::my_item, and tbb::internal::vector_iterator< Container, Value >::my_vector.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator->().
|
inline |
Definition at line 352 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::my_index, tbb::internal::vector_iterator< Container, Value >::my_vector, and tbb::internal::vector_iterator< Container, Value >::vector_iterator().
|
inline |
Pre increment.
Definition at line 382 of file concurrent_vector.h.
References tbb::internal::concurrent_vector_base_v3::is_first_element_in_segment(), tbb::internal::vector_iterator< Container, Value >::my_index, and tbb::internal::vector_iterator< Container, Value >::my_item.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator++().
|
inline |
Post increment.
Definition at line 414 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::operator++().
|
inline |
Definition at line 355 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::my_index, and tbb::internal::vector_iterator< Container, Value >::my_item.
|
inline |
Definition at line 360 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::my_index, tbb::internal::vector_iterator< Container, Value >::my_vector, and tbb::internal::vector_iterator< Container, Value >::vector_iterator().
|
inline |
Pre decrement.
Definition at line 398 of file concurrent_vector.h.
References __TBB_ASSERT, tbb::internal::concurrent_vector_base_v3::is_first_element_in_segment(), tbb::internal::vector_iterator< Container, Value >::my_index, and tbb::internal::vector_iterator< Container, Value >::my_item.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator--().
|
inline |
Post decrement.
Definition at line 421 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::operator--().
|
inline |
Definition at line 363 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::my_index, and tbb::internal::vector_iterator< Container, Value >::my_item.
|
inline |
Definition at line 379 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::operator *().
|
inline |
Definition at line 344 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::my_index, tbb::internal::vector_iterator< Container, Value >::my_item, and tbb::internal::vector_iterator< Container, Value >::my_vector.
|
inline |
Definition at line 376 of file concurrent_vector.h.
References tbb::internal::vector_iterator< Container, Value >::my_index, and tbb::internal::vector_iterator< Container, Value >::my_vector.
|
friend |
Definition at line 319 of file concurrent_vector.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 323 of file concurrent_vector.h.
|
private |
Index into the vector.
Definition at line 300 of file concurrent_vector.h.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator *(), tbb::internal::vector_iterator< Container, Value >::operator+(), tbb::internal::operator+(), tbb::internal::vector_iterator< Container, Value >::operator++(), tbb::internal::vector_iterator< Container, Value >::operator+=(), tbb::internal::vector_iterator< Container, Value >::operator-(), tbb::internal::operator-(), tbb::internal::vector_iterator< Container, Value >::operator--(), tbb::internal::vector_iterator< Container, Value >::operator-=(), tbb::internal::operator<(), tbb::internal::vector_iterator< Container, Value >::operator=(), tbb::internal::operator==(), and tbb::internal::vector_iterator< Container, Value >::operator[]().
|
mutableprivate |
Caches my_vector->internal_subscript(my_index)
NULL if cached value is not available
Definition at line 304 of file concurrent_vector.h.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator *(), tbb::internal::vector_iterator< Container, Value >::operator++(), tbb::internal::vector_iterator< Container, Value >::operator+=(), tbb::internal::vector_iterator< Container, Value >::operator--(), tbb::internal::vector_iterator< Container, Value >::operator-=(), and tbb::internal::vector_iterator< Container, Value >::operator=().
|
private |
concurrent_vector over which we are iterating.
Definition at line 297 of file concurrent_vector.h.
Referenced by tbb::internal::vector_iterator< Container, Value >::operator *(), tbb::internal::vector_iterator< Container, Value >::operator+(), tbb::internal::operator+(), tbb::internal::vector_iterator< Container, Value >::operator-(), tbb::internal::vector_iterator< Container, Value >::operator=(), tbb::internal::operator==(), and tbb::internal::vector_iterator< Container, Value >::operator[]().