Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::search::AlwaysRebuild Struct Reference

Rebuilder that unconditionally triggers a rebuild on every update. More...

#include <NeighborListRebuilder.hpp>

Public Member Functions

Rebuild policy
void setup (const stk::mesh::BulkData &, const stk::mesh::Selector &, const stk::mesh::Selector &) noexcept
 No per-update setup needed.
template<typename TargetInput, typename SourceInput>
bool needs_rebuild (const stk::mesh::BulkData &, const TargetInput &, const SourceInput &) noexcept
 Always signal that a rebuild is needed.
template<typename TargetInput, typename SourceInput>
void snapshot (const stk::mesh::BulkData &, const TargetInput &, const SourceInput &) noexcept
 No state to snapshot after a rebuild.
Chaining
template<RebuilderType Next>
RebuilderChain< AlwaysRebuild, Next > rebuild_if (const Next &next) const
 Return a chain of this rebuilder OR-combined with next.
template<RebuilderType Next>
RebuilderChain< AlwaysRebuild, Next > operator| (const Next &next) const

Detailed Description

Useful as the default policy when a caller wants a fresh list every step, or as a starting point in a rebuilder chain where a later policy may suppress rebuilds.

Member Function Documentation

◆ setup()

void mundy::search::AlwaysRebuild::setup ( const stk::mesh::BulkData & ,
const stk::mesh::Selector & ,
const stk::mesh::Selector &  )
inlinenoexcept

◆ needs_rebuild()

template<typename TargetInput, typename SourceInput>
bool mundy::search::AlwaysRebuild::needs_rebuild ( const stk::mesh::BulkData & ,
const TargetInput & ,
const SourceInput &  )
inlinenoexcept

◆ snapshot()

template<typename TargetInput, typename SourceInput>
void mundy::search::AlwaysRebuild::snapshot ( const stk::mesh::BulkData & ,
const TargetInput & ,
const SourceInput &  )
inlinenoexcept

◆ rebuild_if()

template<RebuilderType Next>
RebuilderChain< AlwaysRebuild, Next > mundy::search::AlwaysRebuild::rebuild_if ( const Next & next) const
inline

◆ operator|()

template<RebuilderType Next>
RebuilderChain< AlwaysRebuild, Next > mundy::search::AlwaysRebuild::operator| ( const Next & next) const
inline