Intel clGPU
context Class Reference

Global library context provides access to all library objects. More...

#include <context.hpp>

Inherits container< context >, and enable_shared_from_this< context >.

Public Member Functions

std::shared_ptr< dispatcherget_dispatcher ()
 Return function dispatcher.
 
std::shared_ptr< engineget_engine (engine_type type=engine_type::default_engine)
 Return execution engine. More...
 
- Public Member Functions inherited from container< context >
std::enable_if< std::is_base_of< element_base, T >::value, std::shared_ptr< T > >::type get (Args &&...args)
 Construct or get an object owned by container (singleton lifetime). More...
 
std::enable_if< std::is_base_of< holder, T >::value, std::shared_ptr< T > >::type get (Args &&...args)
 Constructs an object is initialized but not owned by container.
 

Static Public Member Functions

static std::shared_ptr< contextcreate ()
 Create Context instance.
 

Detailed Description

Global library context provides access to all library objects.

Definition at line 34 of file context.hpp.

Member Function Documentation

◆ get_engine()

std::shared_ptr<engine> get_engine ( engine_type  type = engine_type::default_engine)

Return execution engine.

Parameters
engine_typeengine type to be returned

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