#include <MappingGraphNode.h>
Template class representing a graph node associated with any SOFA component. More...

Template class representing a graph node associated with any SOFA component.
This wrapper allows the MappingGraph to manage nodes for various types of components (e.g., MechanicalState, ForceField) polymorphically while maintaining type safety and providing standard graph node interfaces.
| TComponent | The actual SOFA component class pointer type. |
Public Member Functions | |
| MappingGraphNode (typename TComponent::SPtr s) | |
| Constructs a node wrapper for the given component. More... | |
| void | accept (MappingGraphVisitor &visitor) const override |
| Implements accept by calling visit on the wrapped component. More... | |
| std::string | getName () const override |
| Returns the name of the wrapped component. More... | |
| NodeType | getType () const override |
Public Member Functions inherited from sofa::simulation::BaseMappingGraphNode | |
| virtual | ~BaseMappingGraphNode ()=default |
| bool | isMapped () const |
| const sofa::type::vector< SPtr > & | getParents () const |
| const sofa::type::vector< SPtr > & | getChildren () const |
Friends | |
| class | MappingGraph |
|
inlineexplicit |
Constructs a node wrapper for the given component.
| s | A shared pointer to the component instance. |
|
inlineoverridevirtual |
Implements accept by calling visit on the wrapped component.
| visitor | The concrete visitor implementation. |
Implements sofa::simulation::BaseMappingGraphNode.
|
inlineoverridevirtual |
Returns the name of the wrapped component.
Reimplemented from sofa::simulation::BaseMappingGraphNode.
|
inlineoverridevirtual |
Implements sofa::simulation::BaseMappingGraphNode.
|
friend |