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)
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.

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


function clone#

Clones the predicate.

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

Implements SBCFunctor::clone


function operator()#

Performs the predicate's operation on the node node and returns the result.

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


function operator()#

Performs the predicate's operation on the node node and returns the result.

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


function ~IsType#

Destructor.

SBDDataGraphNode::IsType::~IsType ()