holoscan::FragmentService

Beta
View as Markdown

Base interface for services that enable sharing of resources and functionality between operators within a fragment or across distributed fragments.

FragmentService provides a common interface for services that manage shared resources accessible to multiple operators. Services implementing this interface can be registered with a Fragment and accessed by operators through the Fragment’s service registry.

This interface is typically implemented by resource managers, shared data structures, or other facilities that need to be shared across operators while maintaining a single instance per fragment.

#include <holoscan/fragment_service.hpp>

Constructors

FragmentService

holoscan::FragmentService::FragmentService() = defaultholoscan::FragmentService::FragmentService() = default

Destructor

~FragmentService

virtual holoscan::FragmentService::~FragmentService() = defaultvirtual holoscan::FragmentService::~FragmentService() = default

Methods

resource

virtual void holoscan::FragmentService::resource(
const std::shared_ptr<Resource> &resource
)

Set the underlying resource managed by this service.

Parameters

resource
const std::shared_ptr<Resource> &

Shared pointer to the resource to be managed.