Helper class to allocate and copy wave-functions to/from device.
More...
#include <wave_functions.hpp>
Helper class to allocate and copy wave-functions to/from device.
Definition at line 231 of file wave_functions.hpp.
◆ device_memory_guard() [1/3]
sirius::wf::device_memory_guard::device_memory_guard |
( |
| ) |
|
|
inline |
◆ device_memory_guard() [2/3]
template<typename T >
sirius::wf::device_memory_guard::device_memory_guard |
( |
T const & |
obj__, |
|
|
sddk::memory_t |
mem__, |
|
|
copy_to |
copy_to__ |
|
) |
| |
|
inline |
◆ device_memory_guard() [3/3]
◆ ~device_memory_guard()
sirius::wf::device_memory_guard::~device_memory_guard |
( |
| ) |
|
|
inline |
◆ operator=()
◆ obj_
void* sirius::wf::device_memory_guard::obj_ {nullptr} |
|
private |
◆ mem_
◆ copy_to_
copy_to sirius::wf::device_memory_guard::copy_to_ {wf::copy_to::none} |
|
private |
◆ handler_
std::function<void(void*, sddk::memory_t, wf::copy_to)> sirius::wf::device_memory_guard::handler_ |
|
private |
The documentation for this class was generated from the following file: