コード例 #1
0
ファイル: FieldVector.cs プロジェクト: approach0/fork-indri
 public FieldVector(FieldVector other) : this(indri_csharpPINVOKE.new_FieldVector__SWIG_1(FieldVector.getCPtr(other)), true)
 {
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: FieldVector.cs プロジェクト: approach0/fork-indri
 public FieldVectorEnumerator(FieldVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
ファイル: FieldVector.cs プロジェクト: approach0/fork-indri
 public void SetRange(int index, FieldVector values)
 {
     indri_csharpPINVOKE.FieldVector_SetRange(swigCPtr, index, FieldVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
ファイル: FieldVector.cs プロジェクト: approach0/fork-indri
        public static FieldVector Repeat(Field value, int count)
        {
            IntPtr      cPtr = indri_csharpPINVOKE.FieldVector_Repeat(Field.getCPtr(value), count);
            FieldVector ret  = (cPtr == IntPtr.Zero) ? null : new FieldVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: FieldVector.cs プロジェクト: approach0/fork-indri
        public FieldVector GetRange(int index, int count)
        {
            IntPtr      cPtr = indri_csharpPINVOKE.FieldVector_GetRange(swigCPtr, index, count);
            FieldVector ret  = (cPtr == IntPtr.Zero) ? null : new FieldVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
ファイル: FieldVector.cs プロジェクト: oroszgy/sefh
 public FieldVectorEnumerator(FieldVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
コード例 #7
0
ファイル: FieldVector.cs プロジェクト: oroszgy/sefh
 internal static HandleRef getCPtr(FieldVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #8
0
ファイル: FieldVector.cs プロジェクト: oroszgy/sefh
 public void SetRange(int index, FieldVector values)
 {
     indri_csharpPINVOKE.FieldVector_SetRange(swigCPtr, index, FieldVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
ファイル: DocumentVector.cs プロジェクト: oroszgy/sefh
 public FieldVector fields()
 {
     FieldVector ret = new FieldVector(indri_csharpPINVOKE.DocumentVector_fields(swigCPtr), false);
     return ret;
 }
コード例 #10
0
        public FieldVector fields()
        {
            FieldVector ret = new FieldVector(indri_csharpPINVOKE.DocumentVector_fields(swigCPtr), false);

            return(ret);
        }
コード例 #11
0
ファイル: FieldVector.cs プロジェクト: approach0/fork-indri
 internal static HandleRef getCPtr(FieldVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }