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 (const 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 345 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 347 of file pipeline.h.

◆ pointer

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

Definition at line 348 of file pipeline.h.

◆ value_type

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

Definition at line 349 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 356 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 355 of file pipeline.h.

355 { return (void *) ref; }

◆ create_token()

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

Definition at line 350 of file pipeline.h.

350  {
351  pointer output_t = allocator().allocate(1);
352  return new (output_t) T(source);
353  }

◆ destroy_token()

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

Definition at line 357 of file pipeline.h.

357  {
358  allocator().destroy(token);
359  allocator().deallocate(token,1);
360  }
static value_type & token(pointer &t)
Definition: pipeline.h:354

◆ token()

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

Definition at line 354 of file pipeline.h.

354 { return *t;}

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

Copyright © 2005-2019 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.