Define HOLOSCAN_OPERATOR_FORWARD_ARGS_SUPER
Defined in File operator.hpp
-
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 fromholoscan::Operator
.Example:
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.