peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
Loading...
Searching...
No Matches
peclet::amr::LeafField< T > Struct Template Reference

A value per leaf, in the octree's Z-order leaf slot order. More...

#include <leaf_field.hpp>

Public Member Functions

 LeafField ()=default
 LeafField (Index n, T init=T{})
template<int Dim, unsigned Bits>
 LeafField (const BlockOctree< Dim, Bits > &t, T init=T{})
Index size () const
T & operator[] (Index i)
const T & operator[] (Index i) const
T * data ()
const T * data () const

Public Attributes

std::vector< T > values

Detailed Description

template<class T>
struct peclet::amr::LeafField< T >

A value per leaf, in the octree's Z-order leaf slot order.

Definition at line 123 of file leaf_field.hpp.

Constructor & Destructor Documentation

◆ LeafField() [1/3]

template<class T>
peclet::amr::LeafField< T >::LeafField ( )
default

◆ LeafField() [2/3]

template<class T>
peclet::amr::LeafField< T >::LeafField ( Index n,
T init = T{} )
inlineexplicit

Definition at line 127 of file leaf_field.hpp.

◆ LeafField() [3/3]

template<class T>
template<int Dim, unsigned Bits>
peclet::amr::LeafField< T >::LeafField ( const BlockOctree< Dim, Bits > & t,
T init = T{} )
inlineexplicit

Definition at line 130 of file leaf_field.hpp.

Member Function Documentation

◆ size()

template<class T>
Index peclet::amr::LeafField< T >::size ( ) const
inline

Definition at line 133 of file leaf_field.hpp.

References values.

◆ operator[]() [1/2]

template<class T>
T & peclet::amr::LeafField< T >::operator[] ( Index i)
inline

Definition at line 134 of file leaf_field.hpp.

References values.

◆ operator[]() [2/2]

template<class T>
const T & peclet::amr::LeafField< T >::operator[] ( Index i) const
inline

Definition at line 135 of file leaf_field.hpp.

References values.

◆ data() [1/2]

template<class T>
T * peclet::amr::LeafField< T >::data ( )
inline

Definition at line 136 of file leaf_field.hpp.

References values.

◆ data() [2/2]

template<class T>
const T * peclet::amr::LeafField< T >::data ( ) const
inline

Definition at line 137 of file leaf_field.hpp.

References values.

Member Data Documentation

◆ values

template<class T>
std::vector<T> peclet::amr::LeafField< T >::values

Definition at line 124 of file leaf_field.hpp.

Referenced by data(), data(), operator[](), operator[](), size(), and peclet::amr::writeVtu().


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