Functors

SAMSON has a mechanism for SBCFunctor functors, which are used to perform e.g. selection operators and visit operations.

See also
Getting nodes

Selection

Selection functors are predicates that may be combined:

// find all atoms which have a partial charge larger than 0.4f
std::vector<SBNode*> nodeVector;
SBAtom::HasPartialCharge() &&
(SBAtom::GetPartialCharge() >= 0.4f));

Visitors