DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::experimental::dynamic_parameter< ValueT > Class Template Reference

#include <sycl/ext/oneapi/experimental/graph.hpp>

Inheritance diagram for sycl::_V1::ext::oneapi::experimental::dynamic_parameter< ValueT >:
Collaboration diagram for sycl::_V1::ext::oneapi::experimental::dynamic_parameter< ValueT >:

Public Member Functions

 dynamic_parameter (experimental::command_graph< graph_state::modifiable > Graph, const ValueT &Param)
 Constructs a new dynamic parameter. More...
void update (const ValueT &NewValue)
 Updates this dynamic parameter and all registered nodes with a new value. More...
- Public Member Functions inherited from sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_base
 dynamic_parameter_base (sycl::ext::oneapi::experimental::command_graph< graph_state::modifiable > Graph, size_t ParamSize, const void *Data)

Additional Inherited Members

- Protected Member Functions inherited from sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_base
void updateValue (const void *NewValue, size_t Size)
void updateAccessor (const sycl::detail::AccessorBaseHost *Acc)
template<class Obj >
frienddecltype(Obj::impl) const & sycl::detail::getSyclObjImpl (const Obj &SyclObject)
- Protected Attributes inherited from sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_base
std::shared_ptr< dynamic_parameter_implimpl

Detailed Description

template<typename ValueT>
class sycl::_V1::ext::oneapi::experimental::dynamic_parameter< ValueT >

Definition at line 451 of file graph.hpp.

Constructor & Destructor Documentation

◆ dynamic_parameter()

template<typename ValueT >
sycl::_V1::ext::oneapi::experimental::dynamic_parameter< ValueT >::dynamic_parameter ( experimental::command_graph< graph_state::modifiable Graph,
const ValueT &  Param 

Constructs a new dynamic parameter.

GraphThe graph associated with this parameter.
ParamA reference value for this parameter used for CTAD.

Definition at line 464 of file graph.hpp.

Member Function Documentation

◆ update()

template<typename ValueT >
void sycl::_V1::ext::oneapi::experimental::dynamic_parameter< ValueT >::update ( const ValueT &  NewValue)

Updates this dynamic parameter and all registered nodes with a new value.

NewValueThe new value for the parameter.

Definition at line 470 of file graph.hpp.

References sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_base::updateAccessor(), and sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_base::updateValue().

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