Vue constante sur une zone mémoire contigue contenant des éléments de taille fixe. Plus de détails...
#include <arcane/utils/MemoryView.h>
Types publics | |
using | SpanType = Span<const std::byte> |
Fonctions membres publiques | |
constexpr | ConstMemoryView (Span< const std::byte > bytes) |
template<typename DataType> | |
constexpr | ConstMemoryView (Span< DataType > v) |
template<typename DataType> | |
constexpr | ConstMemoryView (Span< const DataType > v) |
template<typename DataType> | |
constexpr | ConstMemoryView (ConstArrayView< DataType > v) |
template<typename DataType> | |
constexpr | ConstMemoryView (ArrayView< DataType > v) |
template<typename DataType> | |
constexpr | ConstMemoryView (ConstArrayView< DataType > v, Int32 nb_component) |
template<typename DataType> | |
constexpr | ConstMemoryView (ArrayView< DataType > v, Int32 nb_component) |
template<typename DataType> | |
constexpr | ConstMemoryView (Span< DataType > v, Int32 nb_component) |
template<typename DataType> | |
constexpr | ConstMemoryView (Span< const DataType > v, Int32 nb_component) |
template<typename DataType> | |
constexpr ConstMemoryView & | operator= (Span< DataType > v) |
constexpr SpanType | bytes () const |
Vue sous forme d'octets. | |
constexpr const std::byte * | data () const |
Pointeur sur la zone mémoire. | |
constexpr Int64 | nbElement () const |
Nombre d'éléments. | |
constexpr Int32 | datatypeSize () const |
Taille du type de donnée associé (1 par défaut) | |
constexpr ConstMemoryView | subView (Int64 begin_index, Int64 nb_element) const |
Sous-vue à partir de l'indice begin_index et contenant nb_element. | |
SpanType | span () const |
Vue convertie en un Span. | |
constexpr Int64 | size () const |
Attributs publics | |
friend | MutableMemoryView |
Amis | |
ConstMemoryView | makeConstMemoryView (const void *ptr, Int32 datatype_size, Int64 nb_element) |
Créé une vue mémoire en lecture seule. | |
Vue constante sur une zone mémoire contigue contenant des éléments de taille fixe.
Les fonctions makeConstMemoryView() permettent de créer des instances de cette classe.
Définition à la ligne 37 du fichier MemoryView.h.
using Arcane::ConstMemoryView::SpanType = Span<const std::byte> |
Définition à la ligne 44 du fichier MemoryView.h.
|
inlineexplicitconstexpr |
Définition à la ligne 50 du fichier MemoryView.h.
|
inlineexplicitconstexpr |
Définition à la ligne 55 du fichier MemoryView.h.
|
inlineexplicitconstexpr |
Définition à la ligne 58 du fichier MemoryView.h.
|
inlineexplicitconstexpr |
Définition à la ligne 61 du fichier MemoryView.h.
|
inlineexplicitconstexpr |
Définition à la ligne 64 du fichier MemoryView.h.
|
inlineconstexpr |
Définition à la ligne 67 du fichier MemoryView.h.
|
inlineconstexpr |
Définition à la ligne 70 du fichier MemoryView.h.
|
inlineconstexpr |
Définition à la ligne 73 du fichier MemoryView.h.
|
inlineconstexpr |
Définition à la ligne 77 du fichier MemoryView.h.
|
inlineconstexpr |
Vue sous forme d'octets.
Définition à la ligne 107 du fichier MemoryView.h.
Référencé par Arcane::MemoryUtils::copyHost(), Arcane::MemoryUtils::copyWithIndexedDestination(), Arcane::MemoryUtils::copyWithIndexedDestination(), Arcane::MemoryUtils::copyWithIndexedSource(), Arcane::MemoryUtils::fill(), Arcane::MemoryUtils::fill(), Arcane::MemoryUtils::fillIndexed(), Arcane::MemoryUtils::fillIndexed(), et makeConstMemoryView.
|
inlineconstexpr |
Pointeur sur la zone mémoire.
Définition à la ligne 110 du fichier MemoryView.h.
|
inlineconstexpr |
Taille du type de donnée associé (1 par défaut)
Définition à la ligne 116 du fichier MemoryView.h.
Référencé par Arcane::MemoryUtils::copyWithIndexedDestination(), Arcane::MemoryUtils::copyWithIndexedDestination(), Arcane::MemoryUtils::copyWithIndexedSource(), Arcane::MemoryUtils::fill(), Arcane::MemoryUtils::fill(), Arcane::MemoryUtils::fillIndexed(), et Arcane::MemoryUtils::fillIndexed().
|
inlineconstexpr |
Nombre d'éléments.
Définition à la ligne 113 du fichier MemoryView.h.
|
inlineconstexpr |
Définition à la ligne 88 du fichier MemoryView.h.
|
inlineconstexpr |
Définition à la ligne 133 du fichier MemoryView.h.
|
inline |
Vue convertie en un Span.
Définition à la ligne 130 du fichier MemoryView.h.
Références span().
Référencé par span().
|
inlineconstexpr |
Sous-vue à partir de l'indice begin_index et contenant nb_element.
Définition à la ligne 119 du fichier MemoryView.h.
|
friend |
Créé une vue mémoire en lecture seule.
ptr | adresse de la zone mémoire. |
datatype_size | taille (en octet) du type de la donnée. |
nb_element | nombre d'éléments de la vue. |
La zone mémoire aura pour taille datatype_size * nb_element octets.
Définition à la ligne 215 du fichier MemoryView.cc.
Références bytes().
friend Arcane::ConstMemoryView::MutableMemoryView |
Définition à la ligne 45 du fichier MemoryView.h.