Class GXFResource

Holoscan v2.2.0

Base Types

Derived Types

class GXFResource : public holoscan::Resource, public holoscan::gxf::GXFComponent

Subclassed by holoscan::Allocator, holoscan::Clock, holoscan::GXFComponentResource, holoscan::Receiver, holoscan::SerializationBuffer, holoscan::StdComponentSerializer, holoscan::StdEntitySerializer, holoscan::Transmitter, holoscan::UcxComponentSerializer, holoscan::UcxEntitySerializer, holoscan::UcxHoloscanComponentSerializer, holoscan::UcxSerializationBuffer

Public Functions

template<typename ArgT, typename ...ArgsT, typename = std::enable_if_t<!std::is_base_of_v<::holoscan::Resource, std::decay_t<ArgT>> && (std::is_same_v<::holoscan::Arg, std::decay_t<ArgT>> || std::is_same_v<::holoscan::ArgList, std::decay_t<ArgT>>)>>
inline GXFResource(ArgT &&arg, ArgsT&&... args)
GXFResource() = default
GXFResource(const std::string &name, nvidia::gxf::Component *component)
virtual void initialize() override

Initialize the component.

This method is called only once when the component is created for the first time, and use of light-weight initialization.

Protected Functions

virtual void add_to_graph_entity(Operator *op)
virtual void set_parameters() override

This method is invoked by GXFResource::initialize(). By overriding this method, we can modify how GXF Codelet’s parameters are set from the arguments.

bool handle_dev_id(std::optional<int32_t> &dev_id_value)

Protected Attributes

std::string gxf_typename_ = "unknown_gxf_typename"

The GXF type name (used for GXFComponentResource)

Friends

friend class holoscan::gxf::GXFExecutor
friend class holoscan::Operator

Previous Class GXFParameterAdaptor
Next Class GXFScheduler
© Copyright 2022-2024, NVIDIA. Last updated on Jul 17, 2024.