Constant view on a contiguous memory region containing fixed-size elements.
More...
#include <arccore/base/MemoryView.h>
Constant view on a contiguous memory region containing fixed-size elements.
The makeConstMemoryView() functions allow creating instances of this class.
- Warning
- API is currently under definition. Do not use outside of Arcane.
Definition at line 38 of file arccore/src/base/arccore/base/MemoryView.h.
◆ SpanType
| using Arcane::ConstMemoryView::SpanType = Span<const std::byte> |
◆ ConstMemoryView() [1/9]
| Arcane::ConstMemoryView::ConstMemoryView |
( |
Span< const std::byte > | bytes | ) |
|
|
inlineexplicitconstexpr |
◆ ConstMemoryView() [2/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
Span< DataType > | v | ) |
|
|
inlineexplicitconstexpr |
◆ ConstMemoryView() [3/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
Span< const DataType > | v | ) |
|
|
inlineexplicitconstexpr |
◆ ConstMemoryView() [4/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
ConstArrayView< DataType > | v | ) |
|
|
inlineexplicitconstexpr |
◆ ConstMemoryView() [5/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
ArrayView< DataType > | v | ) |
|
|
inlineexplicitconstexpr |
◆ ConstMemoryView() [6/9]
template<typename DataType>
◆ ConstMemoryView() [7/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
ArrayView< DataType > | v, |
|
|
Int32 | nb_component ) |
|
inlineconstexpr |
◆ ConstMemoryView() [8/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
Span< DataType > | v, |
|
|
Int32 | nb_component ) |
|
inlineconstexpr |
◆ ConstMemoryView() [9/9]
template<typename DataType>
| Arcane::ConstMemoryView::ConstMemoryView |
( |
Span< const DataType > | v, |
|
|
Int32 | nb_component ) |
|
inlineconstexpr |
◆ bytes()
| SpanType Arcane::ConstMemoryView::bytes |
( |
| ) |
const |
|
inlineconstexpr |
◆ data()
| const std::byte * Arcane::ConstMemoryView::data |
( |
| ) |
const |
|
inlineconstexpr |
◆ datatypeSize()
| Int32 Arcane::ConstMemoryView::datatypeSize |
( |
| ) |
const |
|
inlineconstexpr |
◆ nbElement()
| Int64 Arcane::ConstMemoryView::nbElement |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator=()
template<typename DataType>
| ConstMemoryView & Arcane::ConstMemoryView::operator= |
( |
Span< DataType > | v | ) |
|
|
inlineconstexpr |
◆ size()
| Int64 Arcane::ConstMemoryView::size |
( |
| ) |
const |
|
inlineconstexpr |
◆ span()
| SpanType Arcane::ConstMemoryView::span |
( |
| ) |
const |
|
inline |
◆ subView()
| ConstMemoryView Arcane::ConstMemoryView::subView |
( |
Int64 | begin_index, |
|
|
Int64 | nb_element ) const |
|
inlineconstexpr |
◆ makeConstMemoryView
| ConstMemoryView makeConstMemoryView |
( |
const void * | ptr, |
|
|
Int32 | datatype_size, |
|
|
Int64 | nb_element ) |
|
friend |
Creates a read-only 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 36 of file MemoryView.cc.
References bytes().
◆ MutableMemoryView
| friend Arcane::ConstMemoryView::MutableMemoryView |
The documentation for this class was generated from the following file: