SMTK
25.6
  • SMTK User’s Guide
    • Obtaining, Building, and Installing
    • An Overview of SMTK’s Subsytems
    • SMTK Common
      • Factory
      • Instances
      • Generator
      • Links
      • Observers
      • Thread Pool
      • Type Hierarchy
      • Type Container
      • Run-time Type Container
      • Type Map
      • Update factory
    • SMTK’s Resource System
    • SMTK’s Geometry System
    • SMTK’s Attribute Resource
    • SMTK’s Operation System
    • SMTK’s Geometric Model Resource
    • SMTK’s Graph-based Model Resource
    • SMTK’s Markup (Annotation) Resource
    • SMTK’s Mesh Resource
    • SMTK’s Project System
    • SMTK’s Task System
    • SMTK’s Simulation System
    • SMTK’s View System
    • SMTK’s Extensions
    • SMTK’s Bindings
    • SMTK’s Plugin System
    • String token utilities
    • Debugging tips and tricks
    • Administering SMTK
    • Contributing to SMTK
  • Tutorials
  • Release notes
SMTK
  • SMTK User’s Guide
  • SMTK Common
  • Links
  • View page source

Links¶

SMTK’s links pattern (Links) describes a set-like container of “link” objects that have a user-defined base class and represent a connection between two different object types (a “left” type and a “right” type). Additionally, each link contains a “role” field to contextualize the link. The pattern uses boost’s multi-index array to facilitate efficient access to a subset of links according to their “left”, “right” and “role” values.

An example that demonstrates the prinicples and API of this pattern can be found at smtk/comon/testing/cxx/UnitTestLinks.cxx.

Note that the links template is used by SMTK’s resource system in a two-level hierarchy: one Links instance connecting resources to each other with a “generic” role holds a child Links instance that connects both components and resources in specific, user-provided roles. See Resource Links for more information.

Previous Next

© Copyright 2025, Kitware, Inc..

Built with Sphinx using a theme provided by Read the Docs.