core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::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
 
Toperator[] (Index i)
 
const Toperator[] (Index i) const
 
Tdata ()
 
const Tdata () const
 

Public Attributes

std::vector< Tvalues
 

Detailed Description

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

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

Definition at line 57 of file leaf_field.hpp.

Constructor & Destructor Documentation

◆ LeafField() [1/3]

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

◆ LeafField() [2/3]

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

Definition at line 61 of file leaf_field.hpp.

◆ LeafField() [3/3]

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

Definition at line 64 of file leaf_field.hpp.

Member Function Documentation

◆ size()

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

Definition at line 67 of file leaf_field.hpp.

References peclet::core::amr::LeafField< T >::values.

◆ operator[]() [1/2]

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

Definition at line 68 of file leaf_field.hpp.

References peclet::core::amr::LeafField< T >::values.

◆ operator[]() [2/2]

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

Definition at line 69 of file leaf_field.hpp.

References peclet::core::amr::LeafField< T >::values.

◆ data() [1/2]

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

Definition at line 70 of file leaf_field.hpp.

References peclet::core::amr::LeafField< T >::values.

◆ data() [2/2]

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

Definition at line 71 of file leaf_field.hpp.

References peclet::core::amr::LeafField< T >::values.

Member Data Documentation

◆ values


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