Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRxMemberIterator.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 OdRxMemberIterator : 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 OdRxMemberIterator(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(OdRxMemberIterator 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 virtual bool done() {
52 bool ret = GlobalsPINVOKE.OdRxMemberIterator_done(swigCPtr);
54 return ret;
55 }
56
57 public virtual bool next() {
58 bool ret = GlobalsPINVOKE.OdRxMemberIterator_next(swigCPtr);
60 return ret;
61 }
62
63 public virtual OdRxMember current() {
64 OdRxMember ret = (OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),GlobalsPINVOKE.OdRxMemberIterator_current(swigCPtr),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public virtual OdRxMember find(String name) {// OdRxMemberPtr
71 MemoryManager mMan = MemoryManager.GetMemoryManager();
72 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
73 IntPtr ptr = GlobalsPINVOKE.OdRxMemberIterator_find(swigCPtr, name);
74
75 OdRxMember ret = null;
76 if (null != mTrans)
77 {
78 mTrans.AddObject((OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),ptr, true));
79 ret = (OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),ptr, false);
80 }
81 else
82 {
83 ret = (OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),ptr, true);
84 }
85
87 return ret;
88}
89
90 public virtual UInt64 size() {
91// test csout
92 /*SIMPLETYPE*/
93 UInt64 ret = GlobalsPINVOKE.OdRxMemberIterator_size(swigCPtr);
95 return ret;
96 }
97
98 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
99 string ret = GlobalsPINVOKE.OdRxMemberIterator_getRealClassName(ptr /*SIMPLETYPE*/);
101 return ret;
102 }
103
104}
105
106}
static global::System.Exception Retrieve()
static string OdRxMemberIterator_getRealClassName(IntPtr jarg1)
static IntPtr OdRxMemberIterator_find(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt64 OdRxMemberIterator_size(HandleRef jarg1)
static IntPtr OdRxMemberIterator_current(HandleRef jarg1)
static void delete_OdRxMemberIterator(HandleRef jarg1)
static bool OdRxMemberIterator_done(HandleRef jarg1)
static bool OdRxMemberIterator_next(HandleRef jarg1)
virtual OdRxMember find(String name)
virtual void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)
OdRxMemberIterator(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdRxMemberIterator obj)