13using System.Runtime.InteropServices;
14using System.Collections;
15using System.Collections.Generic;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
45 public bool Remove(
string key) {
return remove(key) !=
null; }
65 putAt(p.Key, p.Value);
70 System.Collections.Generic.List<
string> l =
new System.Collections.Generic.List<
string>();
77 foreach (
string s
in l)
88 for (
int i = N; i < a.Length; ++i)
89 putAt(a[i].Key, a[i].Value);
100 public ICollection<string>
Keys
108 keys[++index] = i.getKey();
121 values[++index] = i.getObject();
127 , IEnumerator<KeyValuePair<string, Teigha.Core.OdRxObject> >
131 bool enumerationStarted;
134 collectionRef = collection;
135 iterator = collectionRef.newIterator();
136 enumerationStarted =
false;
142 if (!enumerationStarted)
143 throw new InvalidOperationException(
"Enumeration not started.");
145 throw new InvalidOperationException(
"Enumeration finished.");
149 object System.Collections.IEnumerator.Current {
get {
return Current; } }
153 if (enumerationStarted && !iterator.
done())
156 enumerationStarted =
true;
157 return !iterator.
done();
162 enumerationStarted =
false;
163 iterator = collectionRef.newIterator();
168 collectionRef =
null;
175 return new OdRxDictionaryEnumerator(
this);
177 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
179 return new OdRxDictionaryEnumerator(
this);
183 MemoryManager mMan = MemoryManager.GetMemoryManager();
184 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
224 MemoryManager mMan = MemoryManager.GetMemoryManager();
225 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
249 MemoryManager mMan = MemoryManager.GetMemoryManager();
250 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
269 MemoryManager mMan = MemoryManager.GetMemoryManager();
270 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
289 MemoryManager mMan = MemoryManager.GetMemoryManager();
290 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
309 MemoryManager mMan = MemoryManager.GetMemoryManager();
310 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
329 MemoryManager mMan = MemoryManager.GetMemoryManager();
330 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
355 MemoryManager mMan = MemoryManager.GetMemoryManager();
356 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
375 MemoryManager mMan = MemoryManager.GetMemoryManager();
376 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
405 public virtual bool has(UInt32
id) {
434 MemoryManager mMan = MemoryManager.GetMemoryManager();
435 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
454 MemoryManager mMan = MemoryManager.GetMemoryManager();
455 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
480 MemoryManager mMan = MemoryManager.GetMemoryManager();
481 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
500 MemoryManager mMan = MemoryManager.GetMemoryManager();
501 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
static global::System.Exception Retrieve()
static IntPtr OdRxDictionary_newIterator__SWIG_0(HandleRef jarg1, int jarg2)
static IntPtr OdRxDictionary_remove__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt32 OdRxDictionary_idAt(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr OdRxDictionary_createObject()
static IntPtr OdRxDictionary_getAt__SWIG_1(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdRxDictionary_putAt__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3, out UInt32 jarg4)
static void delete_OdRxDictionary(HandleRef jarg1)
static IntPtr OdRxDictionary_remove__SWIG_1(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdRxDictionary_cast(HandleRef jarg1)
static bool OdRxDictionary_resetKey(HandleRef jarg1, UInt32 jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static IntPtr OdRxDictionary_desc()
static IntPtr OdRxDictionary_putAt__SWIG_1(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3)
static IntPtr OdRxDictionary_subDict(HandleRef jarg1, string jarg2, int jarg3, bool jarg4)
static IntPtr OdRxDictionary_isA(HandleRef jarg1)
static bool OdRxDictionary_has__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr OdRxDictionary_newIterator__SWIG_1(HandleRef jarg1)
static IntPtr OdRxDictionary_subDictCr(HandleRef jarg1, string jarg2, int jarg3)
static void OdRxDictionary_reserve(HandleRef jarg1, UInt32 jarg2)
static UInt32 OdRxDictionary_numEntries(HandleRef jarg1)
static bool OdRxDictionary_has__SWIG_1(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdRxDictionary_getAt__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String OdRxDictionary_keyAt(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdRxDictionary_putAt__SWIG_2(HandleRef jarg1, UInt32 jarg2, HandleRef jarg3)
static bool OdRxDictionary_isCaseSensitive(HandleRef jarg1)
static string OdRxDictionary_getRealClassName(IntPtr jarg1)
static void OdRxDictionary_removeAll(HandleRef jarg1)
static IntPtr OdRxDictionary_queryX(HandleRef jarg1, HandleRef jarg2)
static HandleRef getCPtr(OdRxClass obj)
OdRxDictionaryEnumerator(OdRxDictionary collection)
KeyValuePair< string, Teigha.Core.OdRxObject > Current
virtual OdRxObject putAt(UInt32 id, OdRxObject pObject)
virtual String keyAt(UInt32 id)
virtual OdRxObject getAt(UInt32 id)
virtual OdRxDictionaryIterator newIterator()
bool Contains(System.Collections.Generic.KeyValuePair< string, Teigha.Core.OdRxObject > p)
override OdRxObject queryX(OdRxClass protocolClass)
virtual bool has(String key)
bool ContainsKey(string key)
virtual OdRxObject putAt(String key, OdRxObject pObject)
virtual bool resetKey(UInt32 id, String newKey)
static OdRxDictionary createObject()
virtual OdRxObject getAt(String key)
void Add(System.Collections.Generic.KeyValuePair< string, Teigha.Core.OdRxObject > p)
static HandleRef getCPtr(OdRxDictionary obj)
virtual void reserve(UInt32 minSize)
override void Dispose(bool disposing)
virtual OdRxObject putAt(String key, OdRxObject pObject, out UInt32 pRetId)
OdRxDictionary subDict(string path, int numSteps, bool createIfNotFound)
ICollection< OdRxObject > Values
virtual UInt32 numEntries()
bool Remove(System.Collections.Generic.KeyValuePair< string, Teigha.Core.OdRxObject > p)
bool TryGetValue(string key, out OdRxObject value)
virtual UInt32 idAt(String key)
ICollection< string > Keys
virtual OdRxDictionaryIterator newIterator(DictIterType iterType)
static string getRealClassName(IntPtr ptr)
void CopyTo(System.Collections.Generic.KeyValuePair< string, Teigha.Core.OdRxObject >[] a, int N)
virtual bool has(UInt32 id)
void Add(string key, OdRxObject value)
virtual bool isCaseSensitive()
OdRxDictionary subDictCr(string path, int numSteps)
static OdRxDictionary cast(OdRxObject pObj)
static new OdRxClass desc()
OdRxDictionary(IntPtr cPtr, bool cMemoryOwn)
virtual OdRxObject getObject()
static HandleRef getCPtr(OdRxObject obj)