holoscan::gxf::GXFWrapper

Beta
View as Markdown

Class to wrap an Operator into a GXF Codelet.

#include <holoscan/gxf/gxf_wrapper.hpp>

Inherits from: nvidia::gxf::Codelet (public)


Constructors

Destructor

~GXFWrapper

virtual holoscan::gxf::GXFWrapper::~GXFWrapper() = defaultvirtual holoscan::gxf::GXFWrapper::~GXFWrapper() = default

Methods

initialize

gxf_result_t holoscan::gxf::GXFWrapper::initialize() override

deinitialize

gxf_result_t holoscan::gxf::GXFWrapper::deinitialize() override

registerInterface

gxf_result_t holoscan::gxf::GXFWrapper::registerInterface(
nvidia::gxf::Registrar *registrar
) override

start

gxf_result_t holoscan::gxf::GXFWrapper::start() override

tick

gxf_result_t holoscan::gxf::GXFWrapper::tick() override

stop

gxf_result_t holoscan::gxf::GXFWrapper::stop() override

set_operator

void holoscan::gxf::GXFWrapper::set_operator(
Operator *op
)

Set the Operator object to be wrapped.

Parameters

op
Operator *

The pointer to the Operator object.

op

Operator * holoscan::gxf::GXFWrapper::op() constOperator * holoscan::gxf::GXFWrapper::op() const

Get the Operator object.

Returns: The pointer to the Operator object.

execution_context

GXFExecutionContext * holoscan::gxf::GXFWrapper::execution_context() constGXFExecutionContext * holoscan::gxf::GXFWrapper::execution_context() const

Get the ExecutionContext object.

Returns: The pointer to the ExecutionContext object.

input_context

InputContext * holoscan::gxf::GXFWrapper::input_context() constInputContext * holoscan::gxf::GXFWrapper::input_context() const

Get the InputContext object.

Returns: The pointer to the InputContext object.

output_context

OutputContext * holoscan::gxf::GXFWrapper::output_context() constOutputContext * holoscan::gxf::GXFWrapper::output_context() const

Get the OutputContext object.

Returns: The pointer to the OutputContext object.

store_exception

void holoscan::gxf::GXFWrapper::store_exception()

initialize_contexts

void holoscan::gxf::GXFWrapper::initialize_contexts()

Initialize the local contexts (input/output/execution) for the operator.

create_post_compute_nvtx_range

void holoscan::gxf::GXFWrapper::create_post_compute_nvtx_range()

Create post-compute NVTX child range with frame information.

is_root_operator

bool holoscan::gxf::GXFWrapper::is_root_operator() const

Check if the current operator is a root operator.

get_root_operator_frame_info

std::string holoscan::gxf::GXFWrapper::get_root_operator_frame_info() const

Get frame information string for root operators.

get_non_root_operator_frame_info

std::string holoscan::gxf::GXFWrapper::get_non_root_operator_frame_info() const

Get frame information string for non-root operators.


Member variables

NameTypeDescription
op_Operator *
exec_context_GXFExecutionContext *The execution context of the operator. Copied from the operator.
op_input_InputContext *The input context of the operator. Copied from the operator.
op_output_OutputContext *The output context of the operator. Copied from the operator.