Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme > Class Template Reference

Update-scheme aware engine. More...

#include <tpl_ca_async_engine.H>

Collaboration diagram for Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >:
[legend]

Public Types

using lattice_type = Lattice
 
using rule_type = Rule
 
using neighborhood_type = Neighborhood
 
using scheme_type = Update_Scheme
 
using state_type = typename Lattice::state_type
 
using coord_type = typename Lattice::coord_type
 
using extents_type = typename Lattice::extents_type
 
using hook_type = std::function< void(std::size_t, const Lattice &)>
 Hook signature: (step_index, frame).
 

Public Member Functions

 Async_Engine (Lattice initial, Rule r, Neighborhood n, Update_Scheme s={})
 Build an engine.
 
 Async_Engine (Lattice initial, Rule r, Update_Scheme s={})
 Build an engine with a default-constructed neighborhood.
 
 Async_Engine (const Async_Engine &other)=default
 Copy another engine: its lattices, its rule, its neighborhood, its update scheme, its hooks and its count of steps.
 
 Async_Engine (Async_Engine &&other) noexcept(std::is_nothrow_move_constructible_v< Lattice > and std::is_nothrow_move_constructible_v< Rule > and std::is_nothrow_move_constructible_v< Neighborhood > and std::is_nothrow_move_constructible_v< Update_Scheme >)
 Take the simulation of another engine, which is left with empty lattices, no hooks and no steps run.
 
Async_Engine & operator= (const Async_Engine &other)=default
 Copy another engine into this one: its lattices, its rule, its neighborhood, its update scheme, its hooks and its count of steps.
 
Async_Engine & operator= (Async_Engine &&other) noexcept(noexcept(swap(other)))
 Exchange this engine with another, which is left with the previous simulation of this one.
 
void swap (Async_Engine &other) noexcept(noexcept(cur_.swap(other.cur_)) and std::is_nothrow_swappable_v< Rule > and std::is_nothrow_swappable_v< Neighborhood > and std::is_nothrow_swappable_v< Update_Scheme >)
 Exchange in O(1) the simulation of this engine and another.
 
const Lattice & frame () const noexcept
 
std::size_t steps_run () const noexcept
 
const extents_type & extents () const noexcept
 
const Neighborhood & neighborhood () const noexcept
 
Lattice & current_buffer () noexcept
 
const Lattice & current_buffer () const noexcept
 
Lattice & write_lattice () noexcept
 Alias for current_buffer(). Used by checkpoint restore.
 
void set_step_count (const std::size_t s) noexcept
 Override the completed-step counter.
 
Lattice & next_buffer () noexcept
 
Rule & rule () noexcept
 
const Rule & rule () const noexcept
 
const Update_Scheme & scheme () const noexcept
 
std::size_t step_count () const noexcept
 
void swap_buffers () noexcept(noexcept(cur_.swap(nxt_)))
 O(1) swap of the two buffers (called by double-buffer schemes).
 
template<typename F >
void on_pre_step (F &&f)
 Register a hook fired before every step().
 
template<typename F >
void on_post_step (F &&f)
 Register a hook fired after every step().
 
void step ()
 Run one engine step using the configured update scheme.
 
void step_back ()
 Reverse the most recent step (Margolus only).
 
void run (const std::size_t steps)
 Run several steps.
 
void run_back (const std::size_t steps)
 Reverse several steps (Margolus only).
 

Static Public Attributes

static constexpr std::size_t rank = Lattice::rank
 Lattice dimension.
 

Private Member Functions

void swap_all_or_none (Async_Engine &other)
 

Private Attributes

Lattice cur_
 
Lattice nxt_
 
Rule rule_
 
Neighborhood nh_
 
Update_Scheme scheme_
 
hook_type pre_hook_
 
hook_type post_hook_
 
std::size_t step_count_ = 0
 

Detailed Description

template<typename Lattice, typename Rule, typename Neighborhood, typename Update_Scheme = Synchronous_Update<RowMajor>>
class Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >

Update-scheme aware engine.

Owns a current lattice buffer (and, when Update_Scheme::requires_double_buffer is true, a next buffer of identical extents). Each step() dispatches to the scheme's apply() method, which is responsible for visiting the cells in the desired order and updating the lattice in place or by double buffering.

Template Parameters
Latticelattice type.
Rulerule (cell rule or block rule depending on the scheme).
Neighborhoodneighbourhood (Null_Neighborhood<Rank> for block-rule schemes).
Update_Schemeupdate strategy (default Synchronous_Update<RowMajor>).

Definition at line 162 of file tpl_ca_async_engine.H.

Member Typedef Documentation

◆ coord_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::coord_type = typename Lattice::coord_type

Definition at line 177 of file tpl_ca_async_engine.H.

◆ extents_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::extents_type = typename Lattice::extents_type

Definition at line 178 of file tpl_ca_async_engine.H.

◆ hook_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::hook_type = std::function<void(std::size_t, const Lattice &)>

Hook signature: (step_index, frame).

Definition at line 184 of file tpl_ca_async_engine.H.

◆ lattice_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::lattice_type = Lattice

Definition at line 171 of file tpl_ca_async_engine.H.

◆ neighborhood_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::neighborhood_type = Neighborhood

Definition at line 173 of file tpl_ca_async_engine.H.

◆ rule_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule_type = Rule

Definition at line 172 of file tpl_ca_async_engine.H.

◆ scheme_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::scheme_type = Update_Scheme

Definition at line 174 of file tpl_ca_async_engine.H.

◆ state_type

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
using Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::state_type = typename Lattice::state_type

Definition at line 176 of file tpl_ca_async_engine.H.

Constructor & Destructor Documentation

◆ Async_Engine() [1/4]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::Async_Engine ( Lattice  initial,
Rule  r,
Neighborhood  n,
Update_Scheme  s = {} 
)
inline

Build an engine.

Allocates the next-buffer only when Update_Scheme::requires_double_buffer is true. For in-place schemes (Sequential, Random_Asynchronous, Margolus) the next-buffer member stays empty.

Parameters
[in]initialinitial lattice (consumed by move).
[in]rrule instance (consumed by move).
[in]nneighborhood instance (consumed by move).
[in]supdate-scheme instance (consumed by move).
Exceptions
std::bad_allocon allocation failure.

Definition at line 209 of file tpl_ca_async_engine.H.

◆ Async_Engine() [2/4]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::Async_Engine ( Lattice  initial,
Rule  r,
Update_Scheme  s = {} 
)
inline

Build an engine with a default-constructed neighborhood.

Parameters
[in]initialinitial lattice (consumed by move).
[in]rrule instance.
[in]supdate-scheme instance.
Exceptions
std::bad_allocon allocation failure.

Definition at line 222 of file tpl_ca_async_engine.H.

◆ Async_Engine() [3/4]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::Async_Engine ( const Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme > &  other)
default

Copy another engine: its lattices, its rule, its neighborhood, its update scheme, its hooks and its count of steps.

Parameters
[in]otherengine to copy.

◆ Async_Engine() [4/4]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::Async_Engine ( Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme > &&  other)
inlinenoexcept

Take the simulation of another engine, which is left with empty lattices, no hooks and no steps run.

The implicit move took the lattices but copied the step counter: the moved-from engine reported the steps of a simulation that it no longer had.

Parameters
[in,out]otherengine to move from.

Definition at line 242 of file tpl_ca_async_engine.H.

Member Function Documentation

◆ current_buffer() [1/2]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
const Lattice & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::current_buffer ( ) const
inlinenoexcept
Returns
read-only access to the current lattice (used by schemes).

Definition at line 387 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::cur_.

◆ current_buffer() [2/2]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Lattice & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::current_buffer ( )
inlinenoexcept
Returns
read-write access to the current lattice (used by schemes).

Definition at line 381 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::cur_.

◆ extents()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
const extents_type & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::extents ( ) const
inlinenoexcept

◆ frame()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
const Lattice & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::frame ( ) const
inlinenoexcept
Returns
read-only view of the current frame.

Definition at line 357 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::cur_.

Referenced by TEST().

◆ neighborhood()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
const Neighborhood & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::neighborhood ( ) const
inlinenoexcept
Returns
read-only access to the underlying neighborhood.

Definition at line 375 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::nh_.

◆ next_buffer()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Lattice & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::next_buffer ( )
inlinenoexcept
Returns
read-write access to the next lattice (only valid for schemes that require double buffering).

Definition at line 411 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::nxt_.

◆ on_post_step()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
template<typename F >
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::on_post_step ( F &&  f)
inline

Register a hook fired after every step().

Template Parameters
Fcallable accepting (std::size_t, const Lattice &).
Parameters
[in]fhook to install.

Definition at line 461 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::post_hook_.

◆ on_pre_step()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
template<typename F >
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::on_pre_step ( F &&  f)
inline

Register a hook fired before every step().

Template Parameters
Fcallable accepting (std::size_t, const Lattice &).
Parameters
[in]fhook to install.

Definition at line 451 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::pre_hook_.

◆ operator=() [1/2]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Async_Engine & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::operator= ( Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme > &&  other)
inlinenoexcept

Exchange this engine with another, which is left with the previous simulation of this one.

Parameters
[in,out]otherengine to move from.
Returns
this engine.

Definition at line 266 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap().

◆ operator=() [2/2]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Async_Engine & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::operator= ( const Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme > &  other)
default

Copy another engine into this one: its lattices, its rule, its neighborhood, its update scheme, its hooks and its count of steps.

Parameters
[in]otherengine to copy.
Returns
this engine.

◆ rule() [1/2]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
const Rule & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule ( ) const
inlinenoexcept
Returns
read-only access to the rule.

Definition at line 423 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule_.

◆ rule() [2/2]

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Rule & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule ( )
inlinenoexcept
Returns
read-write access to the rule.

Definition at line 417 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule_.

◆ run()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::run ( const std::size_t  steps)
inline

Run several steps.

Parameters
[in]stepsnumber of step() invocations.
Exceptions
Anyexception propagated by step().

Definition at line 525 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step(), and steps.

◆ run_back()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::run_back ( const std::size_t  steps)
inline

Reverse several steps (Margolus only).

Parameters
[in]stepsnumber of step_back() invocations.
Exceptions
Anyexception propagated by step_back().

Definition at line 535 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_back(), and steps.

◆ scheme()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
const Update_Scheme & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::scheme ( ) const
inlinenoexcept
Returns
read-only access to the update scheme.

Definition at line 429 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::scheme_.

◆ set_step_count()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::set_step_count ( const std::size_t  s)
inlinenoexcept

Override the completed-step counter.

Used by load_checkpoint_into to resume a simulation from the exact step recorded in the snapshot.

Parameters
[in]snew step counter value.

Definition at line 404 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_count_.

◆ step()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step ( )
inline

◆ step_back()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_back ( )
inline

Reverse the most recent step (Margolus only).

When the scheme exposes apply_with_origin(engine, rule, origin) (the Margolus contract) and the rule is an involution, applying the rule with the same partition origin that produced the forward step undoes the step bit-by-bit. This method decrements the step counter and re-applies the scheme with the parity that generated the now-discarded forward step.

Precondition
steps_run() > 0.
Exceptions
std::out_of_rangeif no step has been run yet.
Anyexception propagated by the rule or the scheme.

Definition at line 503 of file tpl_ca_async_engine.H.

References ah_out_of_range_error_if, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::cur_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::post_hook_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::pre_hook_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::scheme_, and Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_count_.

Referenced by Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::run_back().

◆ step_count()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
std::size_t Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_count ( ) const
inlinenoexcept
Returns
current step index (number of completed steps so far).

Definition at line 435 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_count_.

◆ steps_run()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
std::size_t Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::steps_run ( ) const
inlinenoexcept
Returns
number of completed step() calls.

Definition at line 363 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_count_.

◆ swap()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap ( Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme > &  other)
inlinenoexcept

Exchange in O(1) the simulation of this engine and another.

Parameters
[in,out]otherengine to exchange with.
Exceptions
whatswapping the rules, the neighborhoods, the update schemes or the lattices throws. When one of those swaps may throw, the rules, the neighborhoods and the schemes are exchanged before the lattices, all or none: if a swap throws, those before it are exchanged back, and both engines are left as they were, if the swap that threw left its arguments as they were. If a swap that puts one back throws too, both engines can only be destroyed or assigned. std::swap(), for a rule without a swap of its own, may leave it moved from.

Definition at line 286 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::cur_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::nh_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::nxt_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::post_hook_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::pre_hook_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rule_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::scheme_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::step_count_, Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap(), Aleph::CA::Lattice< Storage, Boundary >::swap(), and Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap_all_or_none().

Referenced by Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::operator=(), Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap(), and Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap_all_or_none().

◆ swap_all_or_none()

◆ swap_buffers()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
void Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::swap_buffers ( )
inlinenoexcept

◆ write_lattice()

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Lattice & Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::write_lattice ( )
inlinenoexcept

Alias for current_buffer(). Used by checkpoint restore.

Definition at line 393 of file tpl_ca_async_engine.H.

References Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::cur_.

Member Data Documentation

◆ cur_

◆ nh_

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
Neighborhood Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::nh_
private

◆ nxt_

◆ post_hook_

◆ pre_hook_

◆ rank

template<typename Lattice , typename Rule , typename Neighborhood , typename Update_Scheme = Synchronous_Update<RowMajor>>
constexpr std::size_t Aleph::CA::Async_Engine< Lattice, Rule, Neighborhood, Update_Scheme >::rank = Lattice::rank
staticconstexpr

Lattice dimension.

Definition at line 181 of file tpl_ca_async_engine.H.

◆ rule_

◆ scheme_

◆ step_count_


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