Пример #1
0
 public FunctionPtrVector(FunctionPtrVector other) : this(CNTKLibPINVOKE.new_FunctionPtrVector__SWIG_1(FunctionPtrVector.getCPtr(other)), true)
 {
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public FunctionPtrVectorEnumerator(FunctionPtrVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Пример #3
0
 public void SetRange(int index, FunctionPtrVector values)
 {
     CNTKLibPINVOKE.FunctionPtrVector_SetRange(swigCPtr, index, FunctionPtrVector.getCPtr(values));
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
        private FunctionPtrVector _FindAllWithName(string name)
        {
            FunctionPtrVector ret = new FunctionPtrVector(CNTKLibPINVOKE.Function__FindAllWithName__SWIG_1(swigCPtr, name), true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #5
0
        private FunctionPtrVector _FindAllWithName(string name, bool nestedSearchInsideBlockFunction)
        {
            FunctionPtrVector ret = new FunctionPtrVector(CNTKLibPINVOKE.Function__FindAllWithName__SWIG_0(swigCPtr, name, nestedSearchInsideBlockFunction), true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
        public static FunctionPtrVector Repeat(Function value, int count)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.FunctionPtrVector_Repeat(Function.getCPtr(value), count);
            FunctionPtrVector     ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FunctionPtrVector(cPtr, true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #7
0
        public FunctionPtrVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.FunctionPtrVector_GetRange(swigCPtr, index, count);
            FunctionPtrVector     ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FunctionPtrVector(cPtr, true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FunctionPtrVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }