Intel clGPU
container< C > Class Template Reference

Base class for service lookup containers. More...

#include <container.hpp>

Classes

class  element
 Base class for objects onwed by container/context. More...
 
class  holder
 Context holder base class. More...
 

Public Member Functions

template<class T , typename ... Args>
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...
 
template<typename T , typename ... Args>
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.
 

Detailed Description

template<class C>
class iclgpu::container< C >

Base class for service lookup containers.

Definition at line 28 of file container.hpp.

Member Function Documentation

◆ get()

std::enable_if<std::is_base_of<element_base, T>::value, std::shared_ptr<T> >::type get ( Args &&...  args)
inline

Construct or get an object owned by container (singleton lifetime).

Template Parameters
Tinherited from class element

Definition at line 78 of file container.hpp.


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