NVIDIA Holoscan SDK v0.4.0
Clara Holoscan v0.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.

© Copyright 2022, NVIDIA. Last updated on Jun 28, 2023.