NVIDIA Holoscan SDK v2.4.0
Holoscan v2.4.0

Class OperatorWrapper

Base Type

  • public nvidia::gxf::Codelet

class OperatorWrapper : public nvidia::gxf::Codelet

Class to wrap an Operator to interface with the GXF framework.

Public Functions

OperatorWrapper()
virtual ~OperatorWrapper() = default
virtual const char *holoscan_typename() const = 0

Get the type name of the Operator.

gxf_result_t initialize() override

Create and initialize the Operator.

gxf_result_t deinitialize() override

Destroy the Operator and free resources.

gxf_result_t registerInterface(nvidia::gxf::Registrar *registrar) override

Register the Operator’s parameters with the GXF framework.

gxf_result_t start() override

Delegate to the Operator’s start() method.

gxf_result_t tick() override

Delegate to the Operator’s compute() method.

gxf_result_t stop() override

Delegate to the Operator’s stop() method.

Protected Attributes

std::shared_ptr<Operator> op_

The Operator to wrap.

OperatorWrapperFragment fragment_

The fragment to use for the Operator.

std::list<GXFParameter> parameters_

The parameters to use for the GXF Codelet.

struct GXFParameter

Public Members

nvidia::gxf::Parameter<YAML::Node> param

The GXF parameter.

holoscan::ArgType arg_type

The type of the parameter (in Holoscan)

holoscan::Parameter<void*> *param_ptr

The pointer to the parameter (in Holoscan)

Previous Class GXFWrapper
Next Class OperatorWrapperFragment
© Copyright 2022-2024, NVIDIA. Last updated on Oct 1, 2024.