Intel clGPU
|
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< dispatcher > | get_dispatcher () |
Return function dispatcher. | |
std::shared_ptr< engine > | get_engine (engine_type type=engine_type::default_engine) |
Return execution engine. More... | |
![]() | |
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< context > | create () |
Create Context instance. | |
Global library context provides access to all library objects.
Definition at line 34 of file context.hpp.
std::shared_ptr<engine> get_engine | ( | engine_type | type = engine_type::default_engine | ) |
Return execution engine.
engine_type | engine type to be returned |