NVIDIA Holoscan SDK v2.4.0
Holoscan v2.4.0

Define HOLOSCAN_OPERATOR_FORWARD_ARGS_SUPER

HOLOSCAN_OPERATOR_FORWARD_ARGS_SUPER(class_name, super_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 class is derived from <a class="reference internal" href="classholoscan_1_1Operator.html#classholoscan_1_1Operator" target="_self">holoscan::Operator</a> or the base class is derived from <a class="reference internal" href="classholoscan_1_1Operator.html#classholoscan_1_1Operator" target="_self">holoscan::Operator</a>.

Example:

Copy
Copied!
            

class AJASourceOp : public holoscan::ops::GXFOperator { public: HOLOSCAN_OPERATOR_FORWARD_ARGS_SUPER(AJASourceOp, holoscan::ops::GXFOperator) AJASourceOp() = default; const char* gxf_typename() const override { return "nvidia::holoscan::AJASource"; } void setup(OperatorSpec& spec) override; void initialize() override; };

Parameters
  • class_name – The name of the class.

  • super_class_name – The name of the super class.

Previous Define HOLOSCAN_OPERATOR_FORWARD_ARGS
Next Define HOLOSCAN_OPERATOR_FORWARD_TEMPLATE
© Copyright 2022-2024, NVIDIA. Last updated on Oct 1, 2024.