Class SBMStructuralModelNodeBond::IsLinking#
ClassList > SBMStructuralModelNodeBond > IsLinking
Inherits the following classes: SBDDataGraphNodePredicate
Public Functions#
| Type | Name |
|---|---|
| SB_SBMSTRUCTURALMODEL_EXPORT | IsLinking (const SBNodeIndexer & nodeIndexer) Constructs an IsLinking predicate with a given node indexer. |
| SB_SBMSTRUCTURALMODEL_EXPORT IsLinking * | clone () override const Creates a copy of this IsLinking predicate. |
| SB_SBMSTRUCTURALMODEL_EXPORT bool | operator() (SBDDataGraphNode const * node) override Evaluates whether the given node links to any node in the stored indexer. |
| SB_SBMSTRUCTURALMODEL_EXPORT bool | operator() (SBDDataGraphNode const * node) override const Evaluates whether the given node links to any node in the stored indexer (const overload). |
| SB_SBMSTRUCTURALMODEL_EXPORT | ~IsLinking () Destroys the IsLinking predicate. |
Public Functions Documentation#
function IsLinking#
Constructs an IsLinking predicate with a given node indexer.
SB_SBMSTRUCTURALMODEL_EXPORT SBMStructuralModelNodeBond::IsLinking::IsLinking (
const SBNodeIndexer & nodeIndexer
)
The predicate will use the provided nodeIndexer to test whether a node links to any node in the indexer.
Parameters:
nodeIndexerThe node indexer used for linking checks.
function clone#
Creates a copy of this IsLinking predicate.
SB_SBMSTRUCTURALMODEL_EXPORT IsLinking * SBMStructuralModelNodeBond::IsLinking::clone () override const
The returned pointer is a newly allocated clone that the caller is responsible for managing.
Returns:
A pointer to the cloned predicate.
function operator()#
Evaluates whether the given node links to any node in the stored indexer.
SB_SBMSTRUCTURALMODEL_EXPORT bool SBMStructuralModelNodeBond::IsLinking::operator() (
SBDDataGraphNode const * node
) override
The predicate returns true if the supplied node links to any node in the stored nodeIndexer, otherwise false.
Parameters:
nodeThe node to be evaluated.
Returns:
true if the node links to any node in the stored indexer; otherwise false.
function operator()#
Evaluates whether the given node links to any node in the stored indexer (const overload).
SB_SBMSTRUCTURALMODEL_EXPORT bool SBMStructuralModelNodeBond::IsLinking::operator() (
SBDDataGraphNode const * node
) override const
This overload can be called on const IsLinking predicate objects.
Parameters:
nodeThe node to be evaluated.
Returns:
true if the node links to any node in the stored indexer; otherwise false.
function ~IsLinking#
Destroys the IsLinking predicate.