NVIDIA Holoscan SDK v0.5.1
Holoscan v0.5.1

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 holoscan::Operator or the base class is derived from holoscan::Operator.

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-2023, NVIDIA. Last updated on Jul 28, 2023.