MayaFlux 0.5.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 647 of file PhysicsOperator.cpp.

648{
649 size_t count = 0;
650 for (size_t i = 0; i < m_bond_root.size(); ++i) {
651 if (m_bond_root[i] != i) {
652 ++count;
653 }
654 }
655 return count;
656}
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.