Example #1
0
 public CSVectorFloatEnumerator(CSVectorFloat collection)
 {
     this.collectionRef = collection;
     this.currentIndex  = -1;
     this.currentObject = null;
     this.currentSize   = this.collectionRef.Count;
 }
Example #2
0
 public void SetRange(int index, CSVectorFloat values)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorFloat_SetRange(this.swigCPtr, index, CSVectorFloat.getCPtr(values));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public CSVectorFloat(CSVectorFloat other)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorFloat__SWIG_1(CSVectorFloat.getCPtr(other)), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
        public static CSVectorFloat Repeat(float value, int count)
        {
            IntPtr        intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorFloat_Repeat(value, count);
            CSVectorFloat result = (intPtr == IntPtr.Zero) ? null : new CSVectorFloat(intPtr, true);

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

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