holoscan::gxf::Entity
holoscan::gxf::Entity
Class to wrap GXF Entity (nvidia::gxf::Entity).
Inherits from: nvidia::gxf::Entity (public)
Constructors
Entity
Default
Copy
Move
Methods
operator bool
Return true if the entity is not null.
Calling this method on an entity object from {cpp:func}holoscan::IOContext::receive will return false if there is no entity to receive.
Returns: true if the entity is not null. Otherwise, false.
get
add
Adds a tensor component to the entity.
Template parameters
DataT
The data type (must be holoscan::Tensor).
Parameters
data
Shared pointer to the tensor data.
name
Optional name for the component.
stream
Optional CUDA stream for stream-aware memory deallocation. When provided, the stream is set on the tensor’s memory buffer, enabling allocators like BlockMemoryPool to defer memory reuse until GPU operations complete.