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
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
- 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
Type: BlastVariable
null on failure, any error will be logged
CompilationData Class
CreateVariable Overload
NSS.Blast.Compiler Namespace