Class Entity
Defined in File entity.hpp
Base Type
public nvidia::gxf::Entity
-
class Entity : public nvidia::gxf::Entity
Class to wrap GXF Entity (
nvidia::gxf::Entity).Public Functions
-
Entity() = default
-
inline explicit Entity(const nvidia::gxf::Entity &other)
-
inline explicit Entity(nvidia::gxf::Entity &&other)
-
inline operator bool() const
Return true if the entity is not null.
Calling this method on an entity object from {cpp:func}
holoscan::IOContext::receivewill return false if there is no entity to receive.- Returns
true if the entity is not null. Otherwise, false.
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.
Public Static Functions
-
static Entity New(ExecutionContext *context)
-
Entity() = default