Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
Interface Declaration Builders create vertex interfaces from a template parameter pack. This allows developers to express their node interfaces as declarations as opposed to requiring them to sequentially construct their interfaces.
For example, we can do:
FInputVertexInterface Interface { TInputDataVertex
As opposed to: FInputVertexInterface Interface;
Interface.Add(TInputDataVertex
An essential element of the builders is that they use member function overloading of Add(...) to handle the variety of different objects which might be used to describe an interface.
The builders also size memory allocations exactly to remove any addition slack. In general, there can be many interfaces in memory and minimizing their memory footprint is important. Base class for an interface builder which supports sub interfaces.
| Name | FSubInterfaceDeclarationBuilder |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundVertex.h |
| Include Path | #include "MetasoundVertex.h" |
Syntax
class FSubInterfaceDeclarationBuilder
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSubInterfaceDeclarationBuilder
(
TArray< FSubInterfaceLayout >& OutSubInterfaceLayouts |
MetasoundVertex.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSubInterfaceDeclarationBuilder() |
MetasoundVertex.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentNumVertices | int32 | MetasoundVertex.h | ||
| CurrentSubInterfaceIndex | int32 | MetasoundVertex.h | ||
| SubInterfaces | TArray< FSubInterfaceLayout > * | MetasoundVertex.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
FBeginSubInterface&& InSubInterface |
MetasoundVertex.h | ||
void Add
(
FEndSubInterface&& InSubInterface |
MetasoundVertex.h | ||
void ReserveSubInterfaces
(
int32 Num |
Allocate memory for a known number of sub interfaces. | MetasoundVertex.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void OnVertexAdded
(
const FVertexName& InVertexName |
Called when a vertex is added to adjust internal counters. | MetasoundVertex.h |