Web Analytics Made Easy - Statcounter
Skip to content

Class SBDDataGraphNode::IsOneOf#

ClassList > SBDDataGraphNode > IsOneOf

This node predicate returns true for nodes in a given node indexerMore...

Inherits the following classes: SBDDataGraphNodePredicate

Public Functions#

Type Name
IsOneOf (const SBNodeIndexer & nodeIndexer)
Builds a predicate that will call the corresponding SBDDataGraphNode::isOneOf function.
IsOneOf (SBPointerIndexer< SBDDataGraphNode > * nodePointerIndexer)
Builds a predicate that will call the corresponding SBDDataGraphNode::isOneOf function.
virtual IsOneOf * clone () override const
Clones the predicate.
virtual bool operator() (SBDDataGraphNode const * node) override
Performs the predicate's operation and returns the result.
virtual bool operator() (SBDDataGraphNode const * node) override const
Performs the predicate's operation and returns the result.
~IsOneOf ()
Destructor.

Detailed Description#

This node predicate returns true for nodes in a given node indexer.

See also: Node predicates

Public Functions Documentation#

function IsOneOf [1/2]#

Builds a predicate that will call the corresponding SBDDataGraphNode::isOneOf function.

SBDDataGraphNode::IsOneOf::IsOneOf (
    const SBNodeIndexer & nodeIndexer
) 

Constructs an IsOneOf predicate using a node indexer.

The predicate will return true for nodes that are present in the given node indexer.

Parameters:

  • nodeIndexer The indexer containing the nodes to test against.

function IsOneOf [2/2]#

Builds a predicate that will call the corresponding SBDDataGraphNode::isOneOf function.

SBDDataGraphNode::IsOneOf::IsOneOf (
    SBPointerIndexer< SBDDataGraphNode > * nodePointerIndexer
) 

Constructs an IsOneOf predicate using a pointer indexer.

The predicate will return true for nodes that are present in the given pointer indexer.

Parameters:

  • nodePointerIndexer The pointer indexer containing the nodes to test against.

function clone#

Clones the predicate.

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

Creates a copy of this predicate.

Returns:

A new IsOneOf predicate that is a copy of this predicate.


function operator()#

Performs the predicate's operation and returns the result.

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

Evaluates the predicate on the given node.

Parameters:

  • node The node to test.

Returns:

true if the node is present in the associated indexer, otherwise false.


function operator()#

Performs the predicate's operation and returns the result.

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

Evaluates the predicate on the given node (const overload).

Parameters:

  • node The node to test.

Returns:

true if the node is present in the associated indexer, otherwise false.


function ~IsOneOf#

Destructor.

SBDDataGraphNode::IsOneOf::~IsOneOf ()