예제 #1
0
 public CSVectorDoubleEnumerator(CSVectorDouble collection)
 {
     this.collectionRef = collection;
     this.currentIndex  = -1;
     this.currentObject = null;
     this.currentSize   = this.collectionRef.Count;
 }
예제 #2
0
 public void SetRange(int index, CSVectorDouble values)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_SetRange(this.swigCPtr, index, CSVectorDouble.getCPtr(values));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public CSVectorDouble(CSVectorDouble other)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorDouble__SWIG_1(CSVectorDouble.getCPtr(other)), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
        public static CSVectorDouble Repeat(double value, int count)
        {
            IntPtr         intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Repeat(value, count);
            CSVectorDouble result = (intPtr == IntPtr.Zero) ? null : new CSVectorDouble(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
예제 #5
0
        public CSVectorDouble GetRange(int index, int count)
        {
            IntPtr         intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorDouble_GetRange(this.swigCPtr, index, count);
            CSVectorDouble result = (intPtr == IntPtr.Zero) ? null : new CSVectorDouble(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
예제 #6
0
 public static HandleRef getCPtr(CSVectorDouble obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }