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

Class template future

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 future

boost::compute::future — Holds the result of an asynchronous computation.

Synopsis

// In header: <boost/compute/async/future.hpp>
template<typename T> 
class future {
public:
  // construct/copy/destruct
  future();
  future(const T &, const event &);
  future(const future< T > &);
  future & operator=(const future< T > &);
  ~future();
  // public member functions
  T get();
  bool valid() const;
  void wait() const;
  event get_event() const;
};

Description

Смотрите также:

событие,Wait_list

future public construct/copy/destruct

  1. <
    future();
    >
  2. <
    future(constT&result,constevent&event);
    >
  3. <
    future(constfuture<T>&other);
    >
  4. <
    future&operator=(constfuture<T>&other);
    >
  5. <
    ~future();
    >

future public member functions

  1. <
    Tget();
    >

    Возвращает результат вычисления. Это будет блокироваться до тех пор, пока результат не будет готов.

  2. <
    boolvalid()const;
    >Возвращается<true>, если будущее действительно.
  3. <
    voidwait()const;
    >Блоки до завершения вычисления.
  4. <
    eventget_event()const;
    >Возвращает основной объект события.

PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 00:40:06/0.0032389163970947/1