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) Builds the node predicate. |
|
| virtual IsType * | clone () override const Clones the predicate. |
| virtual bool | operator() (SBDDataGraphNode const * node) override Performs the predicate's operation on the node node and returns the result. |
| virtual bool | operator() (SBDDataGraphNode const * node) override const Performs the predicate's operation on the node node and returns the result. |
| ~IsType () Destructor. |
Detailed Description#
This node predicate 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#
Builds the node predicate.
function clone#
Clones the predicate.
Implements SBCFunctor::clone
function operator()#
Performs the predicate's operation on the node node and returns the result.
function operator()#
Performs the predicate's operation on the node node and returns the result.
function ~IsType#
Destructor.