コード例 #1
0
 public TopologyNodePtrVectorEnumerator(TopologyNodePtrVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #2
0
 public static void setNodeVariables(TopologyNodePtrVector ns, SWIGTYPE_p_std__vectorT_vpsc__Variable_p_t vs)
 {
     colaPINVOKE.setNodeVariables(TopologyNodePtrVector.getCPtr(ns), SWIGTYPE_p_std__vectorT_vpsc__Variable_p_t.getCPtr(vs));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public void SetRange(int index, TopologyNodePtrVector values)
 {
     colaPINVOKE.TopologyNodePtrVector_SetRange(swigCPtr, index, TopologyNodePtrVector.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public static TopologyNodePtrVector Repeat(Node value, int count)
        {
            IntPtr cPtr = colaPINVOKE.TopologyNodePtrVector_Repeat(Node.getCPtr(value), count);
            TopologyNodePtrVector ret = (cPtr == IntPtr.Zero) ? null : new TopologyNodePtrVector(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public TopologyNodePtrVector GetRange(int index, int count)
        {
            IntPtr cPtr = colaPINVOKE.TopologyNodePtrVector_GetRange(swigCPtr, index, count);
            TopologyNodePtrVector ret = (cPtr == IntPtr.Zero) ? null : new TopologyNodePtrVector(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
 public void setTopology(TopologyNodePtrVector tnodes, TopologyEdgePtrVector routes)
 {
     colaPINVOKE.ConstrainedFDLayout_setTopology(swigCPtr, TopologyNodePtrVector.getCPtr(tnodes), TopologyEdgePtrVector.getCPtr(routes));
 }
コード例 #7
0
 public TopologyNodePtrVectorEnumerator(TopologyNodePtrVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
コード例 #8
0
 internal static HandleRef getCPtr(TopologyNodePtrVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #9
0
 public void SetRange(int index, TopologyNodePtrVector values)
 {
     colaPINVOKE.TopologyNodePtrVector_SetRange(swigCPtr, index, TopologyNodePtrVector.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
 public void setTopology(TopologyNodePtrVector tnodes, TopologyEdgePtrVector routes)
 {
     colaPINVOKE.ConstrainedFDLayout_setTopology(swigCPtr, TopologyNodePtrVector.getCPtr(tnodes), TopologyEdgePtrVector.getCPtr(routes));
 }
コード例 #11
0
ファイル: cola.cs プロジェクト: amolenaar/adaptagrams
 public static void setNodeVariables(TopologyNodePtrVector ns, SWIGTYPE_p_std__vectorT_vpsc__Variable_p_t vs)
 {
     colaPINVOKE.setNodeVariables(TopologyNodePtrVector.getCPtr(ns), SWIGTYPE_p_std__vectorT_vpsc__Variable_p_t.getCPtr(vs));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #12
0
 internal static HandleRef getCPtr(TopologyNodePtrVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }