SPH
Public Member Functions | List of all members
StorageVisitor< VisitorEnum::ALL_BUFFERS > Struct Reference

Iterator over all buffers. More...

#include <Iterate.h>

Public Member Functions

template<typename TValue , typename TFunctor >
void visit (Quantity &q, const QuantityId UNUSED(id), TFunctor &&functor)
 
template<typename TValue , typename TFunctor >
void visit (const Quantity &q, const QuantityId UNUSED(id), TFunctor &&functor)
 

Detailed Description

Iterator over all buffers.

This will execute given functor for each buffer of each quantities, meaning both values of the quantities and all derivatives. Stored buffers are passed as Array to the functor. Useful for operations such as merging two storages, resizing all arrays of the storage, ...

Definition at line 52 of file Iterate.h.

Member Function Documentation

◆ visit() [1/2]

template<typename TValue , typename TFunctor >
void StorageVisitor< VisitorEnum::ALL_BUFFERS >::visit ( const Quantity q,
const QuantityId   UNUSEDid,
TFunctor &&  functor 
)
inline

Definition at line 60 of file Iterate.h.

◆ visit() [2/2]

template<typename TValue , typename TFunctor >
void StorageVisitor< VisitorEnum::ALL_BUFFERS >::visit ( Quantity q,
const QuantityId   UNUSEDid,
TFunctor &&  functor 
)
inline

Definition at line 54 of file Iterate.h.


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