Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRandom.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
16public class OdRandom : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdRandom(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdRandom obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdRandom() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public OdRandom(OdRandomGen newGenerator) : this(GlobalsPINVOKE.new_OdRandom__SWIG_0(OdRandomGen.getCPtr(newGenerator)), true) {
53 }
54
55 public OdRandom() : this(GlobalsPINVOKE.new_OdRandom__SWIG_1(), true) {
57 }
58
59 public OdRandom(OdRandom iSrc) : this(GlobalsPINVOKE.new_OdRandom__SWIG_2(OdRandom.getCPtr(iSrc)), true) {
61 }
62
63 public void Assign(OdRandom iSrc) {
66 }
67
71 return ret;
72 }
73
74 public UInt64 genUInt64(UInt64 /*SIMPLETYPE*/ low, UInt64 /*SIMPLETYPE*/ high) {
75// test csout
76 /*SIMPLETYPE*/
77 UInt64 ret = GlobalsPINVOKE.OdRandom_genUInt64(swigCPtr, low /*SIMPLETYPE*/, high /*SIMPLETYPE*/);
79 return ret;
80 }
81
82 public Int64 genInt64(Int64 /*SIMPLETYPE*/ low, Int64 /*SIMPLETYPE*/ high) {
83// test csout
84 /*SIMPLETYPE*/
85 Int64 ret = GlobalsPINVOKE.OdRandom_genInt64(swigCPtr, low /*SIMPLETYPE*/, high /*SIMPLETYPE*/);
87 return ret;
88 }
89
90 public UInt32 genUInt(UInt32 /*SIMPLETYPE*/ low, UInt32 /*SIMPLETYPE*/ high) {
91// test csout
92 /*SIMPLETYPE*/
93 UInt32 ret = GlobalsPINVOKE.OdRandom_genUInt(swigCPtr, low /*SIMPLETYPE*/, high /*SIMPLETYPE*/);
95 return ret;
96 }
97
98 public int genInt(int low, int high) {
99 int ret = GlobalsPINVOKE.OdRandom_genInt(swigCPtr, low, high);
101 return ret;
102 }
103
104 public bool genBool() {
105 bool ret = GlobalsPINVOKE.OdRandom_genBool(swigCPtr);
107 return ret;
108 }
109
110 public double genDouble() {
111 double ret = GlobalsPINVOKE.OdRandom_genDouble__SWIG_0(swigCPtr);
113 return ret;
114 }
115
116 public double genDouble(double low, double high) {
117 double ret = GlobalsPINVOKE.OdRandom_genDouble__SWIG_1(swigCPtr, low, high);
119 return ret;
120 }
121
122}
123
124}
static global::System.Exception Retrieve()
static UInt64 OdRandom_genUInt64(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2, UInt64 jarg3)
static void delete_OdRandom(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdRandom_generator__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdRandom_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdRandom_genUInt(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3)
static double OdRandom_genDouble__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static Int64 OdRandom_genInt64(global::System.Runtime.InteropServices.HandleRef jarg1, Int64 jarg2, Int64 jarg3)
static double OdRandom_genDouble__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdRandom_genInt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static bool OdRandom_genBool(global::System.Runtime.InteropServices.HandleRef jarg1)
double genDouble(double low, double high)
Definition: OdRandom.cs:116
static HandleRef getCPtr(OdRandom obj)
Definition: OdRandom.cs:26
UInt32 genUInt(UInt32 low, UInt32 high)
Definition: OdRandom.cs:90
OdRandom(IntPtr cPtr, bool cMemoryOwn)
Definition: OdRandom.cs:21
OdRandomGen generator()
Definition: OdRandom.cs:68
UInt64 genUInt64(UInt64 low, UInt64 high)
Definition: OdRandom.cs:74
double genDouble()
Definition: OdRandom.cs:110
Int64 genInt64(Int64 low, Int64 high)
Definition: OdRandom.cs:82
OdRandom(OdRandom iSrc)
Definition: OdRandom.cs:59
void Assign(OdRandom iSrc)
Definition: OdRandom.cs:63
virtual void Dispose(bool disposing)
Definition: OdRandom.cs:39
OdRandom(OdRandomGen newGenerator)
Definition: OdRandom.cs:51
int genInt(int low, int high)
Definition: OdRandom.cs:98