Class SBDDataGraphNodeSelector#
ClassList > SBDDataGraphNodeSelector
This class describes a selector. More...
#include <SBDDataGraphNodeSelector.hpp>
Public Functions#
| Type | Name |
|---|---|
| SBDDataGraphNodeSelector () Constructs a selector. |
|
| SBDDataGraphNodeSelector (const SBValueMap & parameterMap) Constructs a selector. |
|
| virtual std::string | getNSLExpression () const Returns an NSL expression equivalent to the selector, if such expression exists, else returns an empty string. |
| virtual std::string | getName () const Returns the selector's name. |
| virtual void | getNodes (SBNodeIndexer & resultNodeIndexer, const SBNodeIndexer & nodeIndexer) Selects nodes from nodeIndexer and populatesresultNodeIndexer with the result. |
| virtual bool | isSerializable () const Returns true when the class is serializable. |
| virtual void | serialize (SBCSerializer * serializer, const SBNodeIndexer & nodeIndexer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER, const SBVersionNumber & classVersionNumber=SBVersionNumber(1, 0, 0)) const Serializes the selector. |
| virtual void | unserialize (SBCSerializer * serializer, const SBNodeIndexer & nodeIndexer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER, const SBVersionNumber & classVersionNumber=SBVersionNumber(1, 0, 0)) Unserializes the selector. |
| virtual | ~SBDDataGraphNodeSelector () Destructs the selector. |
Protected Attributes#
| Type | Name |
|---|---|
| SBDDataGraphNodeSelectorData * | dataPointer A pointer to the private data. |
Protected Functions#
| Type | Name |
|---|---|
| SBDDataGraphNodeSelector (SBDDataGraphNodeSelectorData * dataPointer) Protected constructor. |
Detailed Description#
This class describes a selector in SAMSON.
Please refer to Selectors for more information.
Short name: SBNodeSelector
See also: Selectors
Public Functions Documentation#
function SBDDataGraphNodeSelector [2/3]#
Constructs a selector.
Creates a new SBDDataGraphNodeSelector instance.
function SBDDataGraphNodeSelector [3/3]#
Constructs a selector.
Constructs a selector from a parameter map.
Initializes the selector using the given parameter map.
Parameters:
parameterMapThe map of parameters used to configure the selector.
function getNSLExpression#
Returns an NSL expression equivalent to the selector, if such expression exists, else returns an empty string.
Returns the NSL expression for the selector.
Provides a Node Specification Language (NSL) expression that represents the selector, if available; otherwise returns an empty string.
Returns:
The NSL expression string, or an empty string if no expression exists.
function getName#
Returns the selector's name.
Returns the name of the selector.
Provides a textual name identifying the selector.
Returns:
The selector's name.
function getNodes#
Selects nodes from nodeIndexer and populatesresultNodeIndexer with the result.
virtual void SBDDataGraphNodeSelector::getNodes (
SBNodeIndexer & resultNodeIndexer,
const SBNodeIndexer & nodeIndexer
)
Retrieves nodes selected by the selector.
Populates the result node indexer with nodes selected from the input node indexer according to the selector's criteria.
Parameters:
resultNodeIndexerThe indexer that will receive the selected nodes.nodeIndexerThe indexer containing the nodes to be filtered.
function isSerializable#
Returns true when the class is serializable.
Checks whether the selector is serializable.
Returns true if the selector can be serialized, false otherwise.
Returns:
true if the selector is serializable; otherwise false.
function serialize#
Serializes the selector.
virtual void SBDDataGraphNodeSelector::serialize (
SBCSerializer * serializer,
const SBNodeIndexer & nodeIndexer,
const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER,
const SBVersionNumber & classVersionNumber=SBVersionNumber (1, 0, 0)
) const
Writes the selector's state to the given serializer using the specified node indexer and version numbers.
Parameters:
serializerThe serializer to which the selector is written.nodeIndexerThe node indexer associated with the nodes to be serialized.sdkVersionNumberThe SDK version number for compatibility.classVersionNumberThe class version number for compatibility.
function unserialize#
Unserializes the selector.
virtual void SBDDataGraphNodeSelector::unserialize (
SBCSerializer * serializer,
const SBNodeIndexer & nodeIndexer,
const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER,
const SBVersionNumber & classVersionNumber=SBVersionNumber (1, 0, 0)
)
Reads the selector's state from the given serializer using the specified node indexer and version numbers.
Parameters:
serializerThe serializer from which the selector is read.nodeIndexerThe node indexer associated with the nodes to be unserialized.sdkVersionNumberThe SDK version number for compatibility.classVersionNumberThe class version number for compatibility.
function ~SBDDataGraphNodeSelector#
Destructs the selector.
Destroys the selector.
Releases resources associated with the selector.
Protected Attributes Documentation#
variable dataPointer#
A pointer to the private data.
Protected Functions Documentation#
function SBDDataGraphNodeSelector [1/3]#
Protected constructor.
Constructs a selector with the given implementation data pointer.
Initializes the selector using the provided data pointer.
Parameters:
dataPointerPointer to the selector's implementation data.