Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::interface6::internal::token_helper< T, true > Class Template Reference

#include <pipeline.h>

Collaboration diagram for tbb::interface6::internal::token_helper< T, true >:

Public Types

typedef tbb::tbb_allocator< T > allocator
 
typedef T * pointer
 
typedef T value_type
 

Static Public Member Functions

static pointer create_token (value_type &&source)
 
static value_typetoken (pointer &t)
 
static voidcast_to_void_ptr (pointer ref)
 
static pointer cast_from_void_ptr (void *ref)
 
static void destroy_token (pointer token)
 

Detailed Description

template<typename T>
class tbb::interface6::internal::token_helper< T, true >

Definition at line 365 of file pipeline.h.

Member Typedef Documentation

◆ allocator

template<typename T >
typedef tbb::tbb_allocator<T> tbb::interface6::internal::token_helper< T, true >::allocator

Definition at line 367 of file pipeline.h.

◆ pointer

template<typename T >
typedef T* tbb::interface6::internal::token_helper< T, true >::pointer

Definition at line 368 of file pipeline.h.

◆ value_type

template<typename T >
typedef T tbb::interface6::internal::token_helper< T, true >::value_type

Definition at line 369 of file pipeline.h.

Member Function Documentation

◆ cast_from_void_ptr()

template<typename T >
static pointer tbb::interface6::internal::token_helper< T, true >::cast_from_void_ptr ( void ref)
inlinestatic

Definition at line 381 of file pipeline.h.

◆ cast_to_void_ptr()

template<typename T >
static void* tbb::interface6::internal::token_helper< T, true >::cast_to_void_ptr ( pointer  ref)
inlinestatic

Definition at line 380 of file pipeline.h.

380 { return (void *) ref; }

◆ create_token()

template<typename T >
static pointer tbb::interface6::internal::token_helper< T, true >::create_token ( value_type &&  source)
inlinestatic

Definition at line 371 of file pipeline.h.

375  {
376  pointer output_t = allocator().allocate(1);
377  return new (output_t) T(tbb::internal::move(source));
378  }
void move(tbb_thread &t1, tbb_thread &t2)
Definition: tbb_thread.h:319

References tbb::tbb_allocator< T >::allocate(), and tbb::move().

Here is the call graph for this function:

◆ destroy_token()

template<typename T >
static void tbb::interface6::internal::token_helper< T, true >::destroy_token ( pointer  token)
inlinestatic

Definition at line 382 of file pipeline.h.

382  {
383  allocator().destroy(token);
384  allocator().deallocate(token,1);
385  }
static value_type & token(pointer &t)
Definition: pipeline.h:379

References tbb::tbb_allocator< T >::deallocate(), and tbb::tbb_allocator< T >::destroy().

Here is the call graph for this function:

◆ token()

template<typename T >
static value_type& tbb::interface6::internal::token_helper< T, true >::token ( pointer t)
inlinestatic

Definition at line 379 of file pipeline.h.

379 { return *t; }

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.