What can I help you with?
NVIDIA Holoscan SDK v3.3.0

Class GXFResource

Base Types

Derived Types

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

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

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 explicit 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)
void add_to_graph_entity(Fragment *fragment, std::shared_ptr<nvidia::gxf::GraphEntity> graph_entity)
virtual YAML::Node to_yaml_node() const override

Get a YAML representation of the resource.

Returns

YAML node including type and specs of the resource in addition to the base component properties.

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
friend class holoscan::Fragment

Previous Class GXFParameterAdaptor
Next Class GXFScheduler
© Copyright 2022-2025, NVIDIA. Last updated on May 29, 2025.