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 151 of file partitioner.h.
|
inline |
initialize via first range in pool
Definition at line 160 of file partitioner.h.
References tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 164 of file partitioner.h.
|
inline |
Definition at line 194 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 207 of file partitioner.h.
References __TBB_ASSERT.
|
inline |
Definition at line 167 of file partitioner.h.
|
inline |
Definition at line 198 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 203 of file partitioner.h.
References __TBB_ASSERT.
|
inline |
Definition at line 211 of file partitioner.h.
|
inline |
Definition at line 182 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 188 of file partitioner.h.
References __TBB_ASSERT, and tbb::aligned_space< T, N >::begin().
|
inline |
Definition at line 168 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 171 of file partitioner.h.
References tbb::aligned_space< T, N >::begin().
|
private |
Definition at line 155 of file partitioner.h.
|
private |
Definition at line 152 of file partitioner.h.
|
private |
Definition at line 156 of file partitioner.h.
|
private |
Definition at line 154 of file partitioner.h.
|
private |
Definition at line 153 of file partitioner.h.