Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimFieldPatchView Struct Reference

Zero-copy view over a field patch. More...

#include <field_patch.h>

Collaboration diagram for SimFieldPatchView:

Public Attributes

SimBufferView buffer_view
 
SimFieldPatch patch
 
size_t row_stride
 
bool readonly
 
bool zero_copy
 
size_t shape_storage [2]
 
size_t stride_storage [2]
 

Detailed Description

Zero-copy view over a field patch.

The buffer view points into the source field's storage. The shape/stride storage arrays are owned by the view struct and back buffer_view.layout.

Member Data Documentation

◆ buffer_view

SimBufferView SimFieldPatchView::buffer_view

Typed view over patch elements.

◆ patch

SimFieldPatch SimFieldPatchView::patch

Patch coordinates represented by the view.

◆ readonly

bool SimFieldPatchView::readonly

Advisory flag for callers that must not mutate.

◆ row_stride

size_t SimFieldPatchView::row_stride

Physical element stride between rows.

◆ shape_storage

size_t SimFieldPatchView::shape_storage[2]

Local shape backing for buffer_view.layout.

◆ stride_storage

size_t SimFieldPatchView::stride_storage[2]

Local stride backing for buffer_view.layout.

◆ zero_copy

bool SimFieldPatchView::zero_copy

True when data points into source field storage.


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