|
DNDSR 0.2.1
Distributed Numeric Data Structure for CFV
|
Legacy std::vector<T> subclass with an optional device mirror.
More...
#include <Vector.hpp>
Public Types | |
| using | t_base = std::vector< T > |
| using | t_self = host_device_vector_r0< T > |
| template<DeviceBackend B, typename TSize = int64_t> | |
| using | t_deviceView = vector_DeviceView< B, T, TSize > |
Public Member Functions | |
| DNDS_HOST | host_device_vector_r0 (const std::vector< T > &v) |
| DNDS_HOST | host_device_vector_r0 (t_self &&R) noexcept=default |
| Move constructor: moves vector data + transfers device storage. | |
| DNDS_HOST t_self & | operator= (t_self &&R) noexcept=default |
| Move assignment. | |
| ~host_device_vector_r0 ()=default | |
| DNDS_HOST t_self & | operator= (const std::vector< T > &v) |
| void | to_device (DeviceBackend backend=DeviceBackend::Host) |
| void | to_host () |
| T * | dataDevice () |
| template<DeviceBackend B, typename TSize = int64_t> | |
| t_deviceView< B, TSize > | deviceView () |
| const T * | dataDevice () const |
| t_self & | operator= (const t_self &R) |
| host_device_vector_r0 (const t_self &R) | |
| DeviceBackend | device () |
| void | clear_device () |
| void | swap (t_self &R) noexcept |
Public Attributes | |
| t_supDeviceStorageBase | deviceStorage = null_supDeviceStorageBase() |
Legacy std::vector<T> subclass with an optional device mirror.
Simpler predecessor of #host_device_vector_r1, kept for third-party interop that expected a true std::vector<T>. Prefer host_device_vector (aliased to _r1) for new code.
Definition at line 444 of file Vector.hpp.
| using DNDS::host_device_vector_r0< T >::t_base = std::vector<T> |
Definition at line 448 of file Vector.hpp.
| using DNDS::host_device_vector_r0< T >::t_deviceView = vector_DeviceView<B, T, TSize> |
Definition at line 501 of file Vector.hpp.
| using DNDS::host_device_vector_r0< T >::t_self = host_device_vector_r0<T> |
Definition at line 450 of file Vector.hpp.
|
inline |
Definition at line 454 of file Vector.hpp.
|
defaultnoexcept |
Move constructor: moves vector data + transfers device storage.
|
default |
|
inline |
|
inline |
Definition at line 549 of file Vector.hpp.
|
inline |
|
inline |
Definition at line 513 of file Vector.hpp.
|
inline |
|
inline |
|
inline |
Definition at line 462 of file Vector.hpp.
|
inline |
|
defaultnoexcept |
Move assignment.
|
inlinenoexcept |
Definition at line 554 of file Vector.hpp.
|
inline |
Definition at line 476 of file Vector.hpp.
|
inline |
| t_supDeviceStorageBase DNDS::host_device_vector_r0< T >::deviceStorage = null_supDeviceStorageBase() |
Definition at line 452 of file Vector.hpp.