SpECTRE  v2026.11.17
Loading...
Searching...
No Matches
TimeSteppers::MutableBoundaryHistorySide< Data > Class Template Referenceabstract

Access to the data for a particular side of the BoundaryHistory. More...

#include <BoundaryHistory.hpp>

Public Member Functions

virtual void insert (const TimeStepId &id, size_t integration_order, Data data) const =0
virtual void insert_initial (const TimeStepId &id, size_t integration_order, Data data) const =0
template<typename Func>
void for_each (Func &&func) const
 Apply func to each entry.
Data & data (size_t n) const
 Access the data stored on the side. Modifying the data likely invalidates the coupling cache for the associated BoundaryHistory object, which should be cleared.
Data & data (const TimeStepId &id) const
 Access the data stored on the side. Modifying the data likely invalidates the coupling cache for the associated BoundaryHistory object, which should be cleared.
Public Member Functions inherited from TimeSteppers::ConstBoundaryHistorySide< Data >
size_t size () const override
const TimeStepId & operator[] (size_t n) const override
const TimeStepId & operator[] (const std::pair< size_t, size_t > &step_and_substep) const override
size_t integration_order (size_t n) const override
size_t integration_order (const TimeStepId &id) const override
size_t number_of_substeps (size_t n) const override
size_t number_of_substeps (const TimeStepId &id) const override
 This returns the same value for any substep of the same step.
template<typename Func>
void for_each (Func &&func) const
 Apply func to each entry.
const Data & data (size_t n) const
 Access the data stored on the side.
const Data & data (const TimeStepId &id) const
 Access the data stored on the side.
Public Member Functions inherited from stl_boilerplate::RandomAccessSequence< ConstBoundaryHistoryTimes, const TimeStepId, false >
iterator begin () &
const_iterator cbegin () const &
iterator end () &
const_iterator cend () const &
reverse_iterator rbegin () &
const_reverse_iterator crbegin () const &
reverse_iterator rend () &
const_reverse_iterator crend () const &
size_type max_size () const
bool empty () const
reference front ()
reference back ()
reference at (const size_type n)
Public Member Functions inherited from TimeSteppers::MutableBoundaryHistoryTimes
virtual void pop_front () const =0
 Remove the earliest step and its substeps.
virtual void clear () const =0
virtual void clear_substeps (size_t n) const =0
 Remove all substeps for step n except for the step itself.

Protected Member Functions

virtual CircularDeque< BoundaryHistory_detail::StepData< Data > > & parent_data () const =0
virtual void clear_coupling_cache () const =0
Protected Member Functions inherited from stl_boilerplate::RandomAccessSequence< ConstBoundaryHistoryTimes, const TimeStepId, false >
RandomAccessSequence & operator= (const RandomAccessSequence &)=default

Additional Inherited Members

Public Types inherited from stl_boilerplate::RandomAccessSequence< ConstBoundaryHistoryTimes, const TimeStepId, false >
using value_type
using reference
using const_reference
using pointer
using const_pointer
using reverse_iterator
using const_reverse_iterator
using difference_type
using size_type
Static Public Member Functions inherited from TimeSteppers::ConstBoundaryHistorySide< Data >
static constexpr size_t max_size ()

Detailed Description

template<typename Data>
class TimeSteppers::MutableBoundaryHistorySide< Data >

Access to the data for a particular side of the BoundaryHistory.

See also
BoundaryHistory::local(), BoundaryHistory::remote()

Member Function Documentation

◆ for_each()

template<typename Data>
template<typename Func>
void TimeSteppers::MutableBoundaryHistorySide< Data >::for_each ( Func && func) const

Apply func to each entry.

The function func must accept two arguments, one of type const TimeStepId& and a second of either type const Data& or gsl::not_null<Data*>. If func takes a not_null, it must return a bool indicating if it modified the entry. If any entries are modified, the coupling cache of parent BoundaryHistory will be cleared.

◆ parent_data()

template<typename Data>
virtual CircularDeque< BoundaryHistory_detail::StepData< Data > > & TimeSteppers::MutableBoundaryHistorySide< Data >::parent_data ( ) const
protectedpure virtual

The documentation for this class was generated from the following file:
  • src/Time/BoundaryHistory.hpp