Poster of Linux kernelThe best gift for a Linux geek
Threads::scalable_allocator

Threads::scalable_allocator

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

Threads::scalable_allocator -  

SYNOPSIS


#include <threads_allocators.h>  

Classes


struct rebind
 

Public Types


typedef T * pointer

typedef const T * const_pointer

typedef T value_type

typedef size_t size_type

typedef ptrdiff_t difference_type

typedef T * pointer

typedef const T * const_pointer

typedef T value_type

typedef size_t size_type

typedef ptrdiff_t difference_type
 

Public Member Functions


scalable_allocator ()

scalable_allocator (const scalable_allocator &a)

template<typename U > scalable_allocator (const scalable_allocator< U > &a)

scalable_allocator ()

scalable_allocator (const scalable_allocator &a)

template<typename U > scalable_allocator (const scalable_allocator< U > &a)
 

Detailed Description

 

template<typename T> class Threads::scalable_allocator< T >

Scalable allocator to be used in multithreaded code chunks which allocate a lot of dynamic memory. This allocator can be faster than the std::allocator when there are multiple threads.

Just use std::allocator when the Threading Building Blocks is absent.

Definition at line 52 of file threads_allocators.h.  

Member Typedef Documentation

 

template<typename T> typedef const T* Threads::scalable_allocator< T >::const_pointer

Definition at line 56 of file threads_allocators.h.  

template<typename T> typedef const T* Threads::scalable_allocator< T >::const_pointer

Definition at line 95 of file threads_allocators.h.  

template<typename T> typedef ptrdiff_t Threads::scalable_allocator< T >::difference_type

Definition at line 61 of file threads_allocators.h.  

template<typename T> typedef ptrdiff_t Threads::scalable_allocator< T >::difference_type

Definition at line 100 of file threads_allocators.h.  

template<typename T> typedef T* Threads::scalable_allocator< T >::pointer

Definition at line 94 of file threads_allocators.h.  

template<typename T> typedef T* Threads::scalable_allocator< T >::pointer

Definition at line 55 of file threads_allocators.h.  

template<typename T> typedef size_t Threads::scalable_allocator< T >::size_type

Definition at line 99 of file threads_allocators.h.  

template<typename T> typedef size_t Threads::scalable_allocator< T >::size_type

Definition at line 60 of file threads_allocators.h.  

template<typename T> typedef T Threads::scalable_allocator< T >::value_type

Definition at line 59 of file threads_allocators.h.  

template<typename T> typedef T Threads::scalable_allocator< T >::value_type

Definition at line 98 of file threads_allocators.h.  

Constructor & Destructor Documentation

 

template<typename T> Threads::scalable_allocator< T >::scalable_allocator () [inline]

Definition at line 69 of file threads_allocators.h.

                          :
      tbb::scalable_allocator<T>() {}
 

template<typename T> Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< T > &a) [inline]

Definition at line 72 of file threads_allocators.h.

                                                     :
      tbb::scalable_allocator<T>(a) {}
 

template<typename T> template<typename U > Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< U > &a) [inline]

Definition at line 76 of file threads_allocators.h.

                                                       :
      tbb::scalable_allocator<T>(a) {}
 

template<typename T> Threads::scalable_allocator< T >::scalable_allocator () [inline]

Definition at line 108 of file threads_allocators.h.

                          :
      std::allocator<T>() {}
 

template<typename T> Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< T > &a) [inline]

Definition at line 111 of file threads_allocators.h.

                                                     :
      std::allocator<T>(a) {}
 

template<typename T> template<typename U > Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< U > &a) [inline]

Definition at line 115 of file threads_allocators.h.

                                                       :
      std::allocator<T>(a) {}

 

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Classes
Public Types
Public Member Functions
Detailed Description
template<typename T> class Threads::scalable_allocator< T >
Member Typedef Documentation
template<typename T> typedef const T* Threads::scalable_allocator< T >::const_pointer
template<typename T> typedef const T* Threads::scalable_allocator< T >::const_pointer
template<typename T> typedef ptrdiff_t Threads::scalable_allocator< T >::difference_type
template<typename T> typedef ptrdiff_t Threads::scalable_allocator< T >::difference_type
template<typename T> typedef T* Threads::scalable_allocator< T >::pointer
template<typename T> typedef T* Threads::scalable_allocator< T >::pointer
template<typename T> typedef size_t Threads::scalable_allocator< T >::size_type
template<typename T> typedef size_t Threads::scalable_allocator< T >::size_type
template<typename T> typedef T Threads::scalable_allocator< T >::value_type
template<typename T> typedef T Threads::scalable_allocator< T >::value_type
Constructor & Destructor Documentation
template<typename T> Threads::scalable_allocator< T >::scalable_allocator () [inline]
template<typename T> Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< T > &a) [inline]
template<typename T> template<typename U > Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< U > &a) [inline]
template<typename T> Threads::scalable_allocator< T >::scalable_allocator () [inline]
template<typename T> Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< T > &a) [inline]
template<typename T> template<typename U > Threads::scalable_allocator< T >::scalable_allocator (const scalable_allocator< U > &a) [inline]
Author

This document was created by man2html, using the manual pages.
Time: 21:57:25 GMT, April 16, 2011