Class OperatorWrapper

Holoscan v0.5.1

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


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)

© Copyright 2022-2023, NVIDIA. Last updated on Jul 28, 2023.