NVIDIA Holoscan SDK v.2.1.0
Holoscan v2.1.0

Define HOLOSCAN_OPERATOR_FORWARD_ARGS

HOLOSCAN_OPERATOR_FORWARD_ARGS(class_name)

Forward the arguments to the super class.

This macro is used to forward the arguments of the constructor to the base class. It is used in the constructor of the operator class.

Use this macro if the base class is a <a class="reference internal" href="classholoscan_1_1Operator.html#classholoscan_1_1Operator" target="_self">holoscan::Operator</a>.

Example:

Copy
Copied!
            

class GXFOperator : public holoscan::Operator { public: HOLOSCAN_OPERATOR_FORWARD_ARGS(GXFOperator) GXFOperator() = default; void initialize() override; virtual const char* gxf_typename() const = 0; };

Parameters
  • class_name – The name of the class.

Previous Define HOLOSCAN_NETWORK_CONTEXT_FORWARD_TEMPLATE
Next Define HOLOSCAN_OPERATOR_FORWARD_ARGS_SUPER
© Copyright 2022-2024, NVIDIA. Last updated on Jul 3, 2024.