Updated on 2022-03-13 GMT+08:00

Obtaining the Engine Pointer

Queries the pointer to the engine object based on the engine ID. This API is defined in graph.h.

Syntax

std::shared_ptr<Engine> Graph::GetEngine(uint32_t engineID);

Parameter Description

Parameter

Description

Value Range

engineID

ID of the target engine

-

Return Value

Smart pointer to the engine

Calling Example

uint32_t engineID= 1000;
auto graphPtr = Graph::GetInstance(100);
auto enginePtr = graphPtr->GetEngine(engineID);