コード例 #1
0
ファイル: OffsetList.cs プロジェクト: cmears/adaptagrams
 public OffsetListEnumerator(OffsetList collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #2
0
ファイル: OffsetList.cs プロジェクト: cmears/adaptagrams
 public void SetRange(int index, OffsetList values)
 {
     colaPINVOKE.OffsetList_SetRange(swigCPtr, index, OffsetList.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
ファイル: OffsetList.cs プロジェクト: cmears/adaptagrams
 public void AddRange(OffsetList values)
 {
     colaPINVOKE.OffsetList_AddRange(swigCPtr, OffsetList.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
ファイル: OffsetList.cs プロジェクト: cmears/adaptagrams
        public static OffsetList Repeat(OffsetPair value, int count)
        {
            IntPtr     cPtr = colaPINVOKE.OffsetList_Repeat(OffsetPair.getCPtr(value), count);
            OffsetList ret  = (cPtr == IntPtr.Zero) ? null : new OffsetList(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: OffsetList.cs プロジェクト: cmears/adaptagrams
        public OffsetList GetRange(int index, int count)
        {
            IntPtr     cPtr = colaPINVOKE.OffsetList_GetRange(swigCPtr, index, count);
            OffsetList ret  = (cPtr == IntPtr.Zero) ? null : new OffsetList(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
ファイル: OffsetList.cs プロジェクト: cmears/adaptagrams
 internal static HandleRef getCPtr(OffsetList obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #7
0
ファイル: OffsetList.cs プロジェクト: amolenaar/adaptagrams
 public OffsetListEnumerator(OffsetList collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
コード例 #8
0
ファイル: OffsetList.cs プロジェクト: amolenaar/adaptagrams
 internal static HandleRef getCPtr(OffsetList obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #9
0
ファイル: OffsetList.cs プロジェクト: amolenaar/adaptagrams
 public void SetRange(int index, OffsetList values)
 {
     colaPINVOKE.OffsetList_SetRange(swigCPtr, index, OffsetList.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
ファイル: OffsetList.cs プロジェクト: amolenaar/adaptagrams
 public void AddRange(OffsetList values)
 {
     colaPINVOKE.OffsetList_AddRange(swigCPtr, OffsetList.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }