Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::concurrent_vector_base_v3::segment_value_t Class Reference

#include <concurrent_vector.h>

Collaboration diagram for tbb::internal::concurrent_vector_base_v3::segment_value_t:

Public Member Functions

template<typename T >
T * pointer () const
 

Private Member Functions

 segment_value_t (void *an_array)
 

Private Attributes

voidarray
 

Friends

class segment_t
 
bool operator== (segment_value_t const &lhs, segment_not_used)
 
bool operator== (segment_value_t const &lhs, segment_allocated)
 
bool operator== (segment_value_t const &lhs, segment_allocation_failed)
 
template<typename argument_type >
bool operator!= (segment_value_t const &lhs, argument_type arg)
 

Detailed Description

Definition at line 104 of file concurrent_vector.h.

Constructor & Destructor Documentation

◆ segment_value_t()

tbb::internal::concurrent_vector_base_v3::segment_value_t::segment_value_t ( void an_array)
inlineexplicitprivate

Member Function Documentation

◆ pointer()

template<typename T >
T* tbb::internal::concurrent_vector_base_v3::segment_value_t::pointer ( ) const
inline

Friends And Related Function Documentation

◆ operator!=

template<typename argument_type >
bool operator!= ( segment_value_t const &  lhs,
argument_type  arg 
)
friend

Definition at line 115 of file concurrent_vector.h.

115 { return ! (lhs == arg);}

◆ operator== [1/3]

bool operator== ( segment_value_t const &  lhs,
segment_not_used   
)
friend

Definition at line 111 of file concurrent_vector.h.

111 { return lhs.array == 0;}

◆ operator== [2/3]

bool operator== ( segment_value_t const &  lhs,
segment_allocated   
)
friend

Definition at line 112 of file concurrent_vector.h.

112 { return lhs.array > internal::vector_allocation_error_flag;}
static void *const vector_allocation_error_flag
Bad allocation marker.

◆ operator== [3/3]

bool operator== ( segment_value_t const &  lhs,
segment_allocation_failed   
)
friend

Definition at line 113 of file concurrent_vector.h.

113 { return lhs.array == internal::vector_allocation_error_flag;}
static void *const vector_allocation_error_flag
Bad allocation marker.

◆ segment_t

friend class segment_t
friend

Definition at line 108 of file concurrent_vector.h.

Member Data Documentation

◆ array

void* tbb::internal::concurrent_vector_base_v3::segment_value_t::array
private

Definition at line 105 of file concurrent_vector.h.

Referenced by pointer().


The documentation for this class was generated from the following file:

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.