MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ bond_count()

size_t MayaFlux::Nodes::Network::PhysicsOperator::bond_count ( ) const

Number of particles currently bonded to a root other than themselves.

Definition at line 678 of file PhysicsOperator.cpp.

679{
680 size_t count = 0;
681 for (size_t i = 0; i < m_bond_root.size(); ++i) {
682 if (m_bond_root[i] != i) {
683 ++count;
684 }
685 }
686 return count;
687}
size_t count
std::vector< uint32_t > m_bond_root
Empty when no bonds are adopted; see sync_bonds_from_claims.

References count, and m_bond_root.