Class SBDDataGraphNode::IsType#
ClassList > SBDDataGraphNode > IsType
This node predicate compares the node type with a given type.More...
Inherits the following classes: SBCFunctorPredicate1< SBDDataGraphNode const * >
Public Functions#
Type | Name |
---|---|
IsType (SBDDataGraphNode::Type argument0) |
|
virtual IsType * | clone () override const |
virtual bool | operator() (SBDDataGraphNode const * node) override |
virtual bool | operator() (SBDDataGraphNode const * node) override const |
~IsType () |
Detailed Description#
This \np returns true when the node type is equal to the type passed to the constructor of the predicate:
// collect all carbon atoms
SBNodeIndexer nodeIndexer;
SAMSON::getActiveDocument()->getNodes(nodeIndexer, SBNode::IsType(SBNode::Atom) && (SBAtom::GetElementType() == SBElement::Type::Carbon));
See also: Node predicates
Public Functions Documentation#
function IsType#
function clone#
Implements SBCFunctor::clone