Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template buffer_allocator

Boost , Chapter 1. Boost.Compute , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template buffer_allocator

boost::compute::buffer_allocator — The buffer_allocator class allocates memory with buffer objects.

Synopsis

// In header: <boost/compute/allocator/buffer_allocator.hpp>
template<typename T> 
class buffer_allocator {
public:
  // types
  typedef T              value_type;     
  typedef unspecified    pointer;        
  typedef unspecified    const_pointer;  
  typedef std::size_t    size_type;      
  typedef std::ptrdiff_t difference_type;
  // construct/copy/destruct
  explicit buffer_allocator(const context &);
  buffer_allocator(const buffer_allocator< T > &);
  buffer_allocator(buffer_allocator< T > &&) noexcept;
  buffer_allocator< T > & operator=(const buffer_allocator< T > &);
  buffer_allocator< T > & operator=(buffer_allocator< T > &&) noexcept;
  ~buffer_allocator();
  // public member functions
  pointer allocate(size_type);
  void deallocate(pointer, size_type);
  size_type max_size() const;
  context get_context() const;
  // protected member functions
  void set_mem_flags(cl_mem_flags);
};

Description

См. также:

буфер

buffer_allocator public construct/copy/destruct

  1. explicit buffer_allocator(const контекст & контекст);
  2. buffer_allocator(const buffer_allocator< T > & другие>;;
  3. buffer_allocator(buffer_allocator< T > && другие) без ;
  4. buffer_allocator< T > & 13>оператор=(констант buffer_allocator< T> & другие>>>>>>>3>>>>>>>>>>>>>>>>>3>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>3>>>>>>>>>>>>>>>>>>>>>3>>>>>>>>>>>>>>>>>>>3>>>>>>>>>>>>>>>>>>>>
  5. buffer_allocator< T > & 13>оператор=3>(buffer_allocator<T>> & другие >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  6. ~buffer_allocator();

buffer_allocator public member functions

  1. pointer allocate(size_type n);
  2. void deallocate(pointer p, size_type n);
  3. size_type max_size() const;
  4. контекст get_context() const;

buffer_allocator protected member functions

  1. void set_mem_flags(cl_mem_flags флаги);

PrevUpHomeNext

Статья Class template buffer_allocator раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 22:32:11/0.008411169052124/1