Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRandomGenMinstd.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdRandomGenMinstd(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdRandomGenMinstd_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdRandomGenMinstd obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public OdRandomGenMinstd(UInt32 /*SIMPLETYPE*/ seed) : this(GlobalsPINVOKE.new_OdRandomGenMinstd__SWIG_0(seed /*SIMPLETYPE*/), true) {
44 }
45
46 public OdRandomGenMinstd() : this(GlobalsPINVOKE.new_OdRandomGenMinstd__SWIG_1(), true) {
48 }
49
50 public override OdRandomGen clone() {
51 global::System.IntPtr cPtr = GlobalsPINVOKE.OdRandomGenMinstd_clone(swigCPtr);
52 OdRandomGenMinstd ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRandomGenMinstd(cPtr, false);
54 return ret;
55 }
56
57 public override void setSeed(UInt32 /*SIMPLETYPE*/ seed) {
58 GlobalsPINVOKE.OdRandomGenMinstd_setSeed(swigCPtr, seed /*SIMPLETYPE*/);
60 }
61
62 public override UInt32 getSeed() {
63// test csout
64 /*SIMPLETYPE*/
65 UInt32 ret = GlobalsPINVOKE.OdRandomGenMinstd_getSeed(swigCPtr);
67 return ret;
68 }
69
70 public override void getRange(out UInt32 /*SIMPLETYPE*/ high) {
73 }
74
75 public override UInt32 generate() {
76// test csout
77 /*SIMPLETYPE*/
78 UInt32 ret = GlobalsPINVOKE.OdRandomGenMinstd_generate(swigCPtr);
80 return ret;
81 }
82
83}
84
85}
static global::System.Exception Retrieve()
static global::System.IntPtr OdRandomGenMinstd_clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdRandomGenMinstd_getRange(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static void delete_OdRandomGenMinstd(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdRandomGenMinstd_setSeed(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt32 OdRandomGenMinstd_getSeed(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdRandomGenMinstd_generate(global::System.Runtime.InteropServices.HandleRef jarg1)
override void getRange(out UInt32 high)
override OdRandomGen clone()
override void Dispose(bool disposing)
static HandleRef getCPtr(OdRandomGenMinstd obj)
override void setSeed(UInt32 seed)
OdRandomGenMinstd(IntPtr cPtr, bool cMemoryOwn)