Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdMutexArray.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 OdMutexArray : 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 OdMutexArray(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(OdMutexArray obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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 uint size() {
52 uint ret = GlobalsPINVOKE.OdMutexArray_size(swigCPtr);
54 return ret;
55 }
56
57 public bool empty() {
58 bool ret = GlobalsPINVOKE.OdMutexArray_empty(swigCPtr);
60 return ret;
61 }
62
63 public void resize(uint logicalLength) {
64 GlobalsPINVOKE.OdMutexArray_resize(swigCPtr, logicalLength);
66 }
67
68 public OdMutex GetItem(uint idx) {
69 OdMutex ret = new OdMutex(GlobalsPINVOKE.OdMutexArray_GetItem__SWIG_0(swigCPtr, idx), false);
71 return ret;
72 }
73
74 public OdMutexArray() : this(GlobalsPINVOKE.new_OdMutexArray(), true) {
76 }
77
78}
79
80}
static global::System.Exception Retrieve()
static uint OdMutexArray_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdMutexArray_resize(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static global::System.IntPtr OdMutexArray_GetItem__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static void delete_OdMutexArray(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdMutexArray_empty(global::System.Runtime.InteropServices.HandleRef jarg1)
OdMutexArray(IntPtr cPtr, bool cMemoryOwn)
Definition: OdMutexArray.cs:21
OdMutex GetItem(uint idx)
Definition: OdMutexArray.cs:68
void resize(uint logicalLength)
Definition: OdMutexArray.cs:63
static HandleRef getCPtr(OdMutexArray obj)
Definition: OdMutexArray.cs:26
virtual void Dispose(bool disposing)
Definition: OdMutexArray.cs:39