This class implements the default behavior for the Buffer methods related to execution space. This class is not intended to be used directly, instead derive from it if you would like to inherit the default behavior.
More...
#include <bufferManipulation.hpp>
This class implements the default behavior for the Buffer methods related to execution space. This class is not intended to be used directly, instead derive from it if you would like to inherit the default behavior.
Definition at line 78 of file bufferManipulation.hpp.
◆ getPreviousSpace()
MemorySpace LvArray::bufferManipulation::VoidBuffer::getPreviousSpace |
( |
| ) |
const |
|
inline |
- Returns
- The last space the buffer was moved to.
- Note
- The default behavior is that the Buffer can only exist on the CPU.
Definition at line 112 of file bufferManipulation.hpp.
◆ move()
void LvArray::bufferManipulation::VoidBuffer::move |
( |
MemorySpace const |
space, |
|
|
bool const |
touch |
|
) |
| const |
|
inline |
Move the buffer to the given execution space, optionally touching it.
- Parameters
-
space | The space to move the buffer to. |
touch | Whether the buffer should be touched in the new space or not. |
- Note
- The default behavior is that the Buffer can only exist on the CPU and an error occurs if you try to move it to a different space.
Definition at line 102 of file bufferManipulation.hpp.
◆ moveNested()
void LvArray::bufferManipulation::VoidBuffer::moveNested |
( |
MemorySpace const |
space, |
|
|
std::ptrdiff_t const |
size, |
|
|
bool const |
touch |
|
) |
| const |
|
inline |
Move the buffer to the given execution space, optionally touching it.
- Parameters
-
space | The space to move the buffer to. |
size | The size of the buffer. |
touch | Whether the buffer should be touched in the new space or not. |
- Note
- The default behavior is that the Buffer can only exist on the CPU and an error occurs if you try to move it to a different space.
Definition at line 88 of file bufferManipulation.hpp.
◆ registerTouch()
void LvArray::bufferManipulation::VoidBuffer::registerTouch |
( |
MemorySpace const |
space | ) |
const |
|
inline |
Touch the buffer in the given space.
- Parameters
-
- Note
- The default behavior is that the Buffer can only exist on the CPU and an error occurs if you try to move it to a different space.
Definition at line 121 of file bufferManipulation.hpp.
◆ setName()
template<typename = VoidBuffer>
void LvArray::bufferManipulation::VoidBuffer::setName |
( |
std::string const & |
name | ) |
|
|
inline |
Set the name associated with this buffer.
- Template Parameters
-
The | type of the owning object. |
- Parameters
-
name | the name of the buffer. |
Definition at line 131 of file bufferManipulation.hpp.
The documentation for this class was generated from the following file: