Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
shamrock::details::PatchDataFieldSpan_access_rw_dyn_nvar< T > Struct Template Reference

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

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

Public Member Functions

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

Public Attributes

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

Detailed Description

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

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

Definition at line 35 of file PatchDataFieldSpan.hpp.

Member Function Documentation

◆ operator()()

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

Access to element at index idx and offset var.

Definition at line 40 of file PatchDataFieldSpan.hpp.

◆ operator[]()

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

Access the underlying pointer.

Definition at line 43 of file PatchDataFieldSpan.hpp.

Member Data Documentation

◆ nvar

Number of variables.

Definition at line 37 of file PatchDataFieldSpan.hpp.

◆ ptr

Pointer to the data.

Definition at line 36 of file PatchDataFieldSpan.hpp.


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