Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock::details::PatchDataFieldSpan_access_ro_dyn_nvar< T > Struct Template Reference

Accessor for read-only access to dynamic nvar buffer data. More...

#include <shamrock/include/shamrock/patch/PatchDataFieldSpan.hpp>

Collaboration diagram for shamrock::details::PatchDataFieldSpan_access_ro_dyn_nvar< T >:

Public Member Functions

const T & operator() (u32 idx, u32 offset) const
 Access to element at index idx and offset var.
const T & operator[] (u32 idx) const
 Access the underlying pointer.

Public Attributes

const T * ptr
 Pointer to the data.
u32 nvar
 Number of variables.

Detailed Description

template<class T>
struct shamrock::details::PatchDataFieldSpan_access_ro_dyn_nvar< T >

Accessor for read-only access to dynamic nvar buffer data.

Definition at line 48 of file PatchDataFieldSpan.hpp.

Member Function Documentation

◆ operator()()

template<class T>
const T & shamrock::details::PatchDataFieldSpan_access_ro_dyn_nvar< T >::operator() ( u32 idx,
u32 offset ) const
inline

Access to element at index idx and offset var.

Definition at line 53 of file PatchDataFieldSpan.hpp.

◆ operator[]()

template<class T>
const T & shamrock::details::PatchDataFieldSpan_access_ro_dyn_nvar< T >::operator[] ( u32 idx) const
inline

Access the underlying pointer.

Definition at line 56 of file PatchDataFieldSpan.hpp.

Member Data Documentation

◆ nvar

Number of variables.

Definition at line 50 of file PatchDataFieldSpan.hpp.

◆ ptr

template<class T>
const T* shamrock::details::PatchDataFieldSpan_access_ro_dyn_nvar< T >::ptr

Pointer to the data.

Definition at line 49 of file PatchDataFieldSpan.hpp.


The documentation for this struct was generated from the following file: