holoscan::gxf::EntityGroup
holoscan::gxf::EntityGroup
GXF entity group.
Define an entity group for the underlying GXF runtime. Entity groups are used to associate components with resources inheriting from nvidia::gxf::ResourceBase. The components of this type exposed in Holoscan SDK’s API are GPUDevice and ThreadPool.
Constructors
EntityGroup
Overload 2
Deleted overload 1
Methods
gxf_gid
Get the group id of the entity group.
Returns: The GXF group id of the entity group.
gxf_context
Get the GXF context of the entity group.
Returns: The GXF context of the entity group.
name
Get the name of the entity group.
Returns: The name of the entity group.
add
Add a GXF entity to the entity group
Overload 2
Overload 3
Add a GXF entity to the entity group.
If the entity is already a member of a different entity group, it will be removed from that group and added to this one.
Will raise a runtime_error if the entity is already a member of this entity group.
Parameters
The GXF unique id corresponding to the entity.