Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRxBoxedValueOnStack.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
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdRxBoxedValueOnStack(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdRxBoxedValueOnStack_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdRxBoxedValueOnStack 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 static OdRxBoxedValueOnStack cast(OdRxObject pObj) {// OdSmartPtr<OdRxBoxedValueOnStack>
52 MemoryManager mMan = MemoryManager.GetMemoryManager();
53 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
55
56 OdRxBoxedValueOnStack ret = null;
57 if (null != mTrans)
58 {
59 mTrans.AddObject((OdRxBoxedValueOnStack)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxBoxedValueOnStack),ptr, true));
60 ret = (OdRxBoxedValueOnStack)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxBoxedValueOnStack),ptr, false);
61 }
62 else
63 {
64 ret = (OdRxBoxedValueOnStack)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxBoxedValueOnStack),ptr, true);
65 }
66
68 return ret;
69}
70
71 public static OdRxClass desc() {
72 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdRxBoxedValueOnStack_desc(),false); /*createInt 3_2*/
73
75 return ret;
76}
77
78 public virtual OdRxClass isA() {
79 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdRxBoxedValueOnStack_isA(swigCPtr),false); /*createInt 3_2*/
80
82 return ret;
83}
84
85 public virtual OdRxObject queryX(OdRxClass protocolClass) {
86 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdRxBoxedValueOnStack_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
87
89 return ret;
90}
91
92 public static OdRxBoxedValueOnStack createObject() {// OdSmartPtr<OdRxBoxedValueOnStack>
93 MemoryManager mMan = MemoryManager.GetMemoryManager();
94 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
96
97 OdRxBoxedValueOnStack ret = null;
98 if (null != mTrans)
99 {
100 mTrans.AddObject((OdRxBoxedValueOnStack)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxBoxedValueOnStack),ptr, true));
101 ret = (OdRxBoxedValueOnStack)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxBoxedValueOnStack),ptr, false);
102 }
103 else
104 {
105 ret = (OdRxBoxedValueOnStack)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxBoxedValueOnStack),ptr, true);
106 }
107
109 return ret;
110}
111
112 public virtual OdRxValue value() {
113 global::System.IntPtr cPtr = GlobalsPINVOKE.OdRxBoxedValueOnStack_value__SWIG_0(swigCPtr);
114 OdRxValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRxValue(cPtr, false);
116 return ret;
117 }
118
119 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
120 string ret = GlobalsPINVOKE.OdRxBoxedValueOnStack_getRealClassName(ptr /*SIMPLETYPE*/);
122 return ret;
123 }
124
125}
126
127}
static global::System.Exception Retrieve()
static IntPtr OdRxBoxedValueOnStack_cast(HandleRef jarg1)
static global::System.IntPtr OdRxBoxedValueOnStack_value__SWIG_0(HandleRef jarg1)
static IntPtr OdRxBoxedValueOnStack_createObject()
static void delete_OdRxBoxedValueOnStack(HandleRef jarg1)
static string OdRxBoxedValueOnStack_getRealClassName(IntPtr jarg1)
static IntPtr OdRxBoxedValueOnStack_desc()
static IntPtr OdRxBoxedValueOnStack_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxBoxedValueOnStack_isA(HandleRef jarg1)
virtual void Dispose(bool disposing)
static HandleRef getCPtr(OdRxBoxedValueOnStack obj)
static OdRxBoxedValueOnStack cast(OdRxObject pObj)
static OdRxBoxedValueOnStack createObject()
static string getRealClassName(IntPtr ptr)
virtual OdRxObject queryX(OdRxClass protocolClass)
OdRxBoxedValueOnStack(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26