Web Analytics Made Easy - Statcounter
Skip to content

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#

SBDDataGraphNode::IsType::IsType (
    SBDDataGraphNode::Type argument0
) 

function clone#

virtual IsType * SBDDataGraphNode::IsType::clone () override const

Implements SBCFunctor::clone


function operator() [1/2]#

virtual bool SBDDataGraphNode::IsType::operator() (
    SBDDataGraphNode const * node
) override

function operator() [2/2]#

virtual bool SBDDataGraphNode::IsType::operator() (
    SBDDataGraphNode const * node
) override const

function ~IsType#

SBDDataGraphNode::IsType::~IsType ()