Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 3.01 KB

ad066d03-ce3c-04b5-55d1-ee754d3f2439.md

File metadata and controls

71 lines (56 loc) · 3.01 KB

CompilationData.CreateVariable Method (String, BlastVariableDataType, Int32, Boolean, Boolean)

create a holder for variable data collected during compilation - will log errors if the variable exists and returns null - initializes reference count at 1

Namespace: NSS.Blast.Compiler
Assembly: BLAST (in BLAST.dll) Version: 1.0.0

Syntax

C#

public BlastVariable CreateVariable(
	string name,
	BlastVariableDataType datatype,
	int vector_size,
	bool is_input = false,
	bool is_output = false
)

VB

Public Function CreateVariable ( 
	name As String,
	datatype As BlastVariableDataType,
	vector_size As Integer,
	Optional is_input As Boolean = false,
	Optional is_output As Boolean = false
) As BlastVariable

C++

public:
BlastVariable^ CreateVariable(
	String^ name, 
	BlastVariableDataType datatype, 
	int vector_size, 
	bool is_input = false, 
	bool is_output = false
)

F#

member CreateVariable : 
        name : string * 
        datatype : BlastVariableDataType * 
        vector_size : int * 
        ?is_input : bool * 
        ?is_output : bool 
(* Defaults:
        let _is_input = defaultArg is_input false
        let _is_output = defaultArg is_output false
*)
-> BlastVariable 

Parameters

 

name
Type: System.String
first part of identifier - the name
datatype
Type: NSS.Blast.BlastVariableDataType
[Missing documentation for "M:NSS.Blast.Compiler.CompilationData.CreateVariable(System.String,NSS.Blast.BlastVariableDataType,System.Int32,System.Boolean,System.Boolean)"]
vector_size
Type: System.Int32
[Missing documentation for "M:NSS.Blast.Compiler.CompilationData.CreateVariable(System.String,NSS.Blast.BlastVariableDataType,System.Int32,System.Boolean,System.Boolean)"]
is_input (Optional)
Type: System.Boolean
true if used as an input
is_output (Optional)
Type: System.Boolean
true if used as an output

Return Value

Type: BlastVariable
null on failure, any error will be logged

See Also

Reference

CompilationData Class
CreateVariable Overload
NSS.Blast.Compiler Namespace