Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Range pool stores ranges of type T in a circular buffer with MaxCapacity. More...
#include <partitioner.h>
Public Member Functions | |
range_vector (const T &elem) | |
initialize via first range in pool More... | |
~range_vector () | |
bool | empty () const |
depth_t | size () const |
void | split_to_fill (depth_t max_depth) |
void | pop_back () |
void | pop_front () |
T & | back () |
T & | front () |
depth_t | front_depth () |
similarly to front(), returns depth of the first range in the pool More... | |
depth_t | back_depth () |
bool | is_divisible (depth_t max_depth) |
Private Attributes | |
depth_t | my_head |
depth_t | my_tail |
depth_t | my_size |
depth_t | my_depth [MaxCapacity] |
tbb::aligned_space< T, MaxCapacity > | my_pool |
Range pool stores ranges of type T in a circular buffer with MaxCapacity.
Definition at line 155 of file partitioner.h.
|
inline |
initialize via first range in pool
Definition at line 164 of file partitioner.h.
References tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 168 of file partitioner.h.
|
inline |
Definition at line 198 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 211 of file partitioner.h.
References __TBB_ASSERT.
|
inline |
Definition at line 171 of file partitioner.h.
|
inline |
Definition at line 202 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
similarly to front(), returns depth of the first range in the pool
Definition at line 207 of file partitioner.h.
References __TBB_ASSERT.
|
inline |
Definition at line 215 of file partitioner.h.
|
inline |
Definition at line 186 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 192 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 172 of file partitioner.h.
|
inline |
Populates range pool via ranges up to max depth or while divisible max_depth starts from 0, e.g. value 2 makes 3 ranges in the pool up to two 1/4 pieces
Definition at line 175 of file partitioner.h.
References tbb::aligned_space< T, N >::begin().
|
private |
Definition at line 159 of file partitioner.h.
|
private |
Definition at line 156 of file partitioner.h.
|
private |
Definition at line 160 of file partitioner.h.
|
private |
Definition at line 158 of file partitioner.h.
|
private |
Definition at line 157 of file partitioner.h.