Web Analytics Made Easy - Statcounter
Skip to content

Class SBMStructuralModelNodeBond::IsLinkingElementType#

ClassList > IsLinkingElementType

This node predicate checks if one of the atoms the bond connects is of particular element type. More...

Detailed Description#

This node predicate returns true when the element type of one of the atoms this bond connects is equal to the type passed to the constructor of the predicate:

// collect all bonds to hydrogens

SBNodeIndexer nodeIndexer;
SAMSON::getActiveDocument()->getNodes(nodeIndexer, SBNode::IsType(SBNode::Bond) && SBBond::IsLinkingElementType(SBElement::Type::Hydrogen));

See also: Node predicates