Mutable view on a contiguous memory region containing fixed-size elements.
More...
#include <arccore/base/MemoryView.h>
Mutable view on a contiguous memory region containing fixed-size elements.
The makeMutableMemoryView() functions allow creating instances of this class.
- Warning
- API is currently under definition. Do not use outside of Arcane.
Definition at line 157 of file arccore/src/base/arccore/base/MemoryView.h.
◆ SpanType
| using Arcane::MutableMemoryView::SpanType = Span<std::byte> |
◆ MutableMemoryView() [1/5]
| Arcane::MutableMemoryView::MutableMemoryView |
( |
SpanType | bytes | ) |
|
|
inlineexplicitconstexpr |
◆ MutableMemoryView() [2/5]
template<typename DataType>
| Arcane::MutableMemoryView::MutableMemoryView |
( |
Span< DataType > | v | ) |
|
|
inlineexplicitconstexpr |
◆ MutableMemoryView() [3/5]
template<typename DataType>
| Arcane::MutableMemoryView::MutableMemoryView |
( |
ArrayView< DataType > | v | ) |
|
|
inlineexplicitconstexpr |
◆ MutableMemoryView() [4/5]
template<typename DataType>
| Arcane::MutableMemoryView::MutableMemoryView |
( |
ArrayView< DataType > | v, |
|
|
Int32 | nb_component ) |
|
inlineexplicitconstexpr |
◆ MutableMemoryView() [5/5]
template<typename DataType>
| Arcane::MutableMemoryView::MutableMemoryView |
( |
Span< DataType > | v, |
|
|
Int32 | nb_component ) |
|
inlineconstexpr |
◆ bytes()
| SpanType Arcane::MutableMemoryView::bytes |
( |
| ) |
const |
|
inlineconstexpr |
◆ data()
| std::byte * Arcane::MutableMemoryView::data |
( |
| ) |
const |
|
inlineconstexpr |
◆ datatypeSize()
| Int32 Arcane::MutableMemoryView::datatypeSize |
( |
| ) |
const |
|
inlineconstexpr |
◆ nbElement()
| Int64 Arcane::MutableMemoryView::nbElement |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator ConstMemoryView()
◆ operator=()
template<typename DataType>
| MutableMemoryView & Arcane::MutableMemoryView::operator= |
( |
Span< DataType > | v | ) |
|
|
inlineconstexpr |
◆ size()
| Int64 Arcane::MutableMemoryView::size |
( |
| ) |
const |
|
inlineconstexpr |
◆ span()
| SpanType Arcane::MutableMemoryView::span |
( |
| ) |
const |
|
inlineconstexpr |
◆ subView()
| MutableMemoryView Arcane::MutableMemoryView::subView |
( |
Int64 | begin_index, |
|
|
Int64 | nb_element ) const |
|
inlineconstexpr |
◆ makeMutableMemoryView
| MutableMemoryView makeMutableMemoryView |
( |
void * | ptr, |
|
|
Int32 | datatype_size, |
|
|
Int64 | nb_element ) |
|
friend |
Creates a mutable memory view.
- Parameters
-
| ptr | address of the memory region. |
| datatype_size | size (in bytes) of the data type. |
| nb_element | number of elements in the view. |
The memory region will have a size of datatype_size * nb_element bytes.
Definition at line 26 of file MemoryView.cc.
References bytes().
The documentation for this class was generated from the following file: