seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
ring::AffiliationUpdater Class Reference

Exact incremental affiliation across frames. More...

#include <src/include/internal/cage_affiliation.hpp>

Public Member Functions

 AffiliationUpdater ()
 ~AffiliationUpdater ()
 AffiliationUpdater (AffiliationUpdater &&) noexcept
AffiliationUpdater & operator= (AffiliationUpdater &&) noexcept
 AffiliationUpdater (const AffiliationUpdater &)=delete
AffiliationUpdater & operator= (const AffiliationUpdater &)=delete
const CageAffiliation & update (const std::vector< std::vector< int > > &rings, const std::vector< std::vector< int > > &nList)
int lastReclassified () const
void setBatchFraction (double fraction)

Detailed Description

Exact incremental affiliation across frames.

Stores, per six-ring, its passing basal pairs with their prismatic rings and its equatorial result. On a new frame it matches the rings to the previous frame's and evaluates again only the pairs of rings that are new, hold an atom whose neighbour row changed, or hold or bond an atom of an added or removed ring, and the equatorial test of rings that are new or hold an atom of an added or removed ring. The flags are the unions over the stored answers, identical to cageAffiliation on the new frame.

Definition at line 100 of file cage_affiliation.hpp.

Constructor & Destructor Documentation

◆ AffiliationUpdater() [1/3]

ring::AffiliationUpdater::AffiliationUpdater ( )

◆ ~AffiliationUpdater()

ring::AffiliationUpdater::~AffiliationUpdater ( )

◆ AffiliationUpdater() [2/3]

ring::AffiliationUpdater::AffiliationUpdater ( AffiliationUpdater && )
noexcept

◆ AffiliationUpdater() [3/3]

ring::AffiliationUpdater::AffiliationUpdater ( const AffiliationUpdater & )
delete

Member Function Documentation

◆ lastReclassified()

int ring::AffiliationUpdater::lastReclassified ( ) const
nodiscard

Rings whose pairs or equatorial test the last update evaluated again; the first call reports every ring.

◆ operator=() [1/2]

AffiliationUpdater & ring::AffiliationUpdater::operator= ( AffiliationUpdater && )
noexcept

◆ operator=() [2/2]

AffiliationUpdater & ring::AffiliationUpdater::operator= ( const AffiliationUpdater & )
delete

◆ setBatchFraction()

void ring::AffiliationUpdater::setBatchFraction ( double fraction)

Above this fraction of dirty rings, update runs one sweep instead of remapping stored pairs. The default is 1, so a transition keeps every ring outside the changed region. A smaller fraction opts into the sweep. An unchanged graph returns the stored flags.

◆ update()

const CageAffiliation & ring::AffiliationUpdater::update ( const std::vector< std::vector< int > > & rings,
const std::vector< std::vector< int > > & nList )

Classify the frame, reusing the previous frame's answers outside the locality closure of what changed. The reference stays valid until the next update call.


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