コード例 #1
0
 public ColaEdge(ColaEdge p) : this(colaPINVOKE.new_ColaEdge__SWIG_2(ColaEdge.getCPtr(p)), true)
 {
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: EdgeVector.cs プロジェクト: cmears/adaptagrams
 public void Insert(int index, ColaEdge x)
 {
     colaPINVOKE.EdgeVector_Insert(swigCPtr, index, ColaEdge.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
ファイル: EdgeVector.cs プロジェクト: cmears/adaptagrams
 private void setitem(int index, ColaEdge val)
 {
     colaPINVOKE.EdgeVector_setitem(swigCPtr, index, ColaEdge.getCPtr(val));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
ファイル: EdgeVector.cs プロジェクト: cmears/adaptagrams
 public void Add(ColaEdge x)
 {
     colaPINVOKE.EdgeVector_Add(swigCPtr, ColaEdge.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
ファイル: EdgeVector.cs プロジェクト: cmears/adaptagrams
        private ColaEdge getitem(int index)
        {
            ColaEdge ret = new ColaEdge(colaPINVOKE.EdgeVector_getitem(swigCPtr, index), false);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
ファイル: EdgeVector.cs プロジェクト: cmears/adaptagrams
        public static EdgeVector Repeat(ColaEdge value, int count)
        {
            IntPtr     cPtr = colaPINVOKE.EdgeVector_Repeat(ColaEdge.getCPtr(value), count);
            EdgeVector ret  = (cPtr == IntPtr.Zero) ? null : new EdgeVector(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
ファイル: EdgeVector.cs プロジェクト: amolenaar/adaptagrams
 private void setitem(int index, ColaEdge val)
 {
     colaPINVOKE.EdgeVector_setitem(swigCPtr, index, ColaEdge.getCPtr(val));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #8
0
ファイル: EdgeVector.cs プロジェクト: amolenaar/adaptagrams
 private ColaEdge getitemcopy(int index)
 {
     ColaEdge ret = new ColaEdge(colaPINVOKE.EdgeVector_getitemcopy(swigCPtr, index), true);
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #9
0
ファイル: EdgeVector.cs プロジェクト: amolenaar/adaptagrams
 public void Insert(int index, ColaEdge x)
 {
     colaPINVOKE.EdgeVector_Insert(swigCPtr, index, ColaEdge.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
ファイル: EdgeVector.cs プロジェクト: amolenaar/adaptagrams
 public void Add(ColaEdge x)
 {
     colaPINVOKE.EdgeVector_Add(swigCPtr, ColaEdge.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #11
0
ファイル: EdgeVector.cs プロジェクト: amolenaar/adaptagrams
 public static EdgeVector Repeat(ColaEdge value, int count)
 {
     IntPtr cPtr = colaPINVOKE.EdgeVector_Repeat(ColaEdge.getCPtr(value), count);
     EdgeVector ret = (cPtr == IntPtr.Zero) ? null : new EdgeVector(cPtr, true);
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #12
0
ファイル: ColaEdge.cs プロジェクト: amolenaar/adaptagrams
 internal static HandleRef getCPtr(ColaEdge obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #13
0
ファイル: ColaEdge.cs プロジェクト: amolenaar/adaptagrams
 public ColaEdge(ColaEdge p)
     : this(colaPINVOKE.new_ColaEdge__SWIG_2(ColaEdge.getCPtr(p)), true)
 {
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #14
0
 internal static HandleRef getCPtr(ColaEdge obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }