public InstructionCustomFunction (Cdn.Function function, Cdn.StackArgs argdim) : base (IntPtr.Zero) { if (GetType () != typeof (InstructionCustomFunction)) { throw new InvalidOperationException ("Can't override this constructor."); } Raw = cdn_instruction_custom_function_new(function == null ? IntPtr.Zero : function.Handle, argdim == null ? IntPtr.Zero : argdim.Handle); }
public Cdn.Function ForDimension(Cdn.StackArgs argdim) { IntPtr raw_ret = cdn_function_for_dimension(Handle, argdim == null ? IntPtr.Zero : argdim.Handle); Cdn.Function ret = GLib.Object.GetObject(raw_ret) as Cdn.Function; return(ret); }
public static bool FunctionIsCommutative(Cdn.MathFunctionType type, Cdn.StackArgs argdim) { bool raw_ret = cdn_math_function_is_commutative((int)type, argdim == null ? IntPtr.Zero : argdim.Handle); bool ret = raw_ret; return(ret); }
bool InvokeNative(Cdn.StackArgs inargs, Cdn.StackArg outarg, out int extraspace) { IntPtr error = IntPtr.Zero; bool result = native_cb(inargs == null ? IntPtr.Zero : inargs.Handle, outarg == null ? IntPtr.Zero : outarg.Handle, out extraspace, out error); return(result); }
public InstructionRand(Cdn.StackArgs argdim) : base(IntPtr.Zero) { if (GetType() != typeof(InstructionRand)) { throw new InvalidOperationException("Can't override this constructor."); } Raw = cdn_instruction_rand_new(argdim == null ? IntPtr.Zero : argdim.Handle); }
public InstructionMatrix(Cdn.StackArgs args, Cdn.Dimension dim) : base(IntPtr.Zero) { if (GetType() != typeof(InstructionMatrix)) { throw new InvalidOperationException("Can't override this constructor."); } IntPtr native_dim = GLib.Marshaller.StructureToPtrAlloc(dim); Raw = cdn_instruction_matrix_new(args == null ? IntPtr.Zero : args.Handle, native_dim); dim = Cdn.Dimension.New(native_dim); Marshal.FreeHGlobal(native_dim); }
public InstructionFunction(uint id, string name, int numargs) : base(IntPtr.Zero) { if (GetType() != typeof(InstructionFunction)) { throw new InvalidOperationException("Can't override this constructor."); } IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup(name); var argdim = new Cdn.StackArgs(numargs); Raw = cdn_instruction_function_new(id, native_name, argdim.Handle); GLib.Marshaller.Free(native_name); }
public static void FunctionExecute(Cdn.MathFunctionType type, Cdn.StackArgs argdim, Cdn.Stack stack) { cdn_math_function_execute((int)type, argdim == null ? IntPtr.Zero : argdim.Handle, stack == null ? IntPtr.Zero : stack.Handle); }
public static unsafe bool FunctionGetStackManipulation(Cdn.MathFunctionType type, Cdn.StackArgs inargs, Cdn.StackArg outarg, out int extra_space) { IntPtr error = IntPtr.Zero; bool raw_ret = cdn_math_function_get_stack_manipulation((int)type, inargs == null ? IntPtr.Zero : inargs.Handle, outarg == null ? IntPtr.Zero : outarg.Handle, out extra_space, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public void Copy(Cdn.StackArgs src) { cdn_stack_args_copy(Handle, src == null ? IntPtr.Zero : src.Handle); }
public unsafe bool Initialize(GLib.SList expressions, int num_expressions, GLib.SList indices, int num_indices, Cdn.StackArgs argdim, Cdn.CompileContext context) { IntPtr error = IntPtr.Zero; bool raw_ret = cdn_operator_initialize(Handle, expressions == null ? IntPtr.Zero : expressions.Handle, num_expressions, indices == null ? IntPtr.Zero : indices.Handle, num_indices, argdim == null ? IntPtr.Zero : argdim.Handle, context == null ? IntPtr.Zero : context.Handle, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
void InvokeNative(Cdn.Stack stack, Cdn.StackArgs argdim) { native_cb(stack == null ? IntPtr.Zero : stack.Handle, argdim == null ? IntPtr.Zero : argdim.Handle, __data); }