Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbIdBufferIterator.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbIdBufferIterator(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbIdBufferIterator_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbIdBufferIterator obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public virtual void start() {
46 }
47
48 public virtual bool done() {
49 bool ret = TD_DbPINVOKE.OdDbIdBufferIterator_done(swigCPtr);
51 return ret;
52 }
53
54 public virtual void next() {
57 }
58
59 public virtual OdDbObjectId id() {
60 MemoryManager mMan = MemoryManager.GetMemoryManager();
61 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
62 IntPtr ptr = TD_DbPINVOKE.OdDbIdBufferIterator_id(swigCPtr);
63
64 OdDbObjectId ret = null;
65 if (null != mTrans)
66 {
67 mTrans.AddObject(new OdDbObjectId(ptr, true));
68 ret = new OdDbObjectId(ptr, false);
69 }
70 else
71 {
72 ret = new OdDbObjectId(ptr, true);
73 }
74
76 return ret;
77}
78
79 public virtual bool seek(OdDbObjectId id) {
82 return ret;
83 }
84
85 public virtual void removeCurrentId() {
88 }
89
90 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
91 string ret = TD_DbPINVOKE.OdDbIdBufferIterator_getRealClassName(ptr /*SIMPLETYPE*/);
93 return ret;
94 }
95
96}
97
98}
override void Dispose(bool disposing)
virtual bool seek(OdDbObjectId id)
static HandleRef getCPtr(OdDbIdBufferIterator obj)
static string getRealClassName(IntPtr ptr)
OdDbIdBufferIterator(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static global::System.Exception Retrieve()
static void OdDbIdBufferIterator_removeCurrentId(HandleRef jarg1)
static bool OdDbIdBufferIterator_done(HandleRef jarg1)
static string OdDbIdBufferIterator_getRealClassName(IntPtr jarg1)
static void OdDbIdBufferIterator_next(HandleRef jarg1)
static void OdDbIdBufferIterator_start(HandleRef jarg1)
static bool OdDbIdBufferIterator_seek(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDbIdBufferIterator(HandleRef jarg1)
static global::System.IntPtr OdDbIdBufferIterator_id(HandleRef jarg1)