pub struct FunctionStitchingGraph(/* private fields */);Expand description
A graph defining how functions are stitched together.
C++ equivalent: MTL::FunctionStitchingGraph
Implementations§
Source§impl FunctionStitchingGraph
impl FunctionStitchingGraph
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new stitching graph.
C++ equivalent: FunctionStitchingGraph* alloc()->init()
Sourcepub fn function_name(&self) -> Option<String>
pub fn function_name(&self) -> Option<String>
Get the function name.
C++ equivalent: NS::String* functionName() const
Sourcepub fn set_function_name(&self, name: &str)
pub fn set_function_name(&self, name: &str)
Set the function name.
C++ equivalent: void setFunctionName(const NS::String*)
Sourcepub fn nodes_ptr(&self) -> *const c_void
pub fn nodes_ptr(&self) -> *const c_void
Get the nodes as a raw NS::Array pointer.
C++ equivalent: NS::Array* nodes() const
Sourcepub fn set_nodes_ptr(&self, nodes: *const c_void)
pub fn set_nodes_ptr(&self, nodes: *const c_void)
Set the nodes.
C++ equivalent: void setNodes(const NS::Array*)
Sourcepub fn output_node(&self) -> Option<FunctionStitchingFunctionNode>
pub fn output_node(&self) -> Option<FunctionStitchingFunctionNode>
Get the output node.
C++ equivalent: FunctionStitchingFunctionNode* outputNode() const
Sourcepub fn set_output_node(&self, output_node: &FunctionStitchingFunctionNode)
pub fn set_output_node(&self, output_node: &FunctionStitchingFunctionNode)
Set the output node.
C++ equivalent: void setOutputNode(const MTL::FunctionStitchingFunctionNode*)
Sourcepub fn attributes_ptr(&self) -> *const c_void
pub fn attributes_ptr(&self) -> *const c_void
Get the attributes as a raw NS::Array pointer.
C++ equivalent: NS::Array* attributes() const
Sourcepub fn set_attributes_ptr(&self, attributes: *const c_void)
pub fn set_attributes_ptr(&self, attributes: *const c_void)
Set the attributes.
C++ equivalent: void setAttributes(const NS::Array*)