public TopologyEdgePtrVectorEnumerator(TopologyEdgePtrVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, TopologyEdgePtrVector values)
 {
     colaPINVOKE.TopologyEdgePtrVector_SetRange(swigCPtr, index, TopologyEdgePtrVector.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public static TopologyEdgePtrVector Repeat(Edge value, int count)
        {
            IntPtr cPtr = colaPINVOKE.TopologyEdgePtrVector_Repeat(Edge.getCPtr(value), count);
            TopologyEdgePtrVector ret = (cPtr == IntPtr.Zero) ? null : new TopologyEdgePtrVector(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public TopologyEdgePtrVector GetRange(int index, int count)
        {
            IntPtr cPtr = colaPINVOKE.TopologyEdgePtrVector_GetRange(swigCPtr, index, count);
            TopologyEdgePtrVector ret = (cPtr == IntPtr.Zero) ? null : new TopologyEdgePtrVector(cPtr, true);

            if (colaPINVOKE.SWIGPendingException.Pending)
            {
                throw colaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #5
0
 public void setTopology(TopologyNodePtrVector tnodes, TopologyEdgePtrVector routes)
 {
     colaPINVOKE.ConstrainedFDLayout_setTopology(swigCPtr, TopologyNodePtrVector.getCPtr(tnodes), TopologyEdgePtrVector.getCPtr(routes));
 }
 public void setTopology(TopologyNodePtrVector tnodes, TopologyEdgePtrVector routes)
 {
     colaPINVOKE.ConstrainedFDLayout_setTopology(swigCPtr, TopologyNodePtrVector.getCPtr(tnodes), TopologyEdgePtrVector.getCPtr(routes));
 }
 internal static HandleRef getCPtr(TopologyEdgePtrVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public TopologyEdgePtrVectorEnumerator(TopologyEdgePtrVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
 internal static HandleRef getCPtr(TopologyEdgePtrVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public void SetRange(int index, TopologyEdgePtrVector values)
 {
     colaPINVOKE.TopologyEdgePtrVector_SetRange(swigCPtr, index, TopologyEdgePtrVector.getCPtr(values));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }