NVIDIA Holoscan SDK v0.4.0
v0.4.0

Define HOLOSCAN_CONDITION_FORWARD_ARGS_SUPER

HOLOSCAN_CONDITION_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 condition class.

Use this macro if the class is derived from holoscan::Condition or the base class is derived from holoscan::Condition.

Example:

Copy
Copied!
            

class MessageAvailableCondition : public gxf::GXFCondition { public: HOLOSCAN_CONDITION_FORWARD_ARGS_SUPER(MessageAvailableCondition, GXFCondition) MessageAvailableCondition() = default; ... const char* gxf_typename() const override { return "nvidia::gxf::MessageAvailableSchedulingTerm"; } ... void setup(ComponentSpec& spec) override; void initialize() override { GXFCondition::initialize(); } };

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.