Beispiel #1
0
 public vector_stringEnumerator(vector_string collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Beispiel #2
0
 public vector_string(vector_string other) : this(VisionLabPINVOKE.new_vector_string__SWIG_1(vector_string.getCPtr(other)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void GetWords(vector_string wordTab)
 {
     VisionLabPINVOKE.ClassLexicon_GetWords(swigCPtr, vector_string.getCPtr(wordTab));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void SetRange(int index, vector_string values)
 {
     VisionLabPINVOKE.vector_string_SetRange(swigCPtr, index, vector_string.getCPtr(values));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetScript(string name, vector_string script)
 {
     VisionLabPINVOKE.VisLibCmdInt_SetScript(swigCPtr, name, vector_string.getCPtr(script));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void GetArray(string name, vector_string vs)
 {
     VisionLabPINVOKE.VisLibCmdInt_GetArray(swigCPtr, name, vector_string.getCPtr(vs));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public vector_string GetScript(string name)
    {
        vector_string ret = new vector_string(VisionLabPINVOKE.VisLibCmdInt_GetScript(swigCPtr, name), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public string ExecuteScript(string scriptName, string arg1, vector_string lines)
    {
        string ret = VisionLabPINVOKE.VisLibCmdInt_ExecuteScript(swigCPtr, scriptName, arg1, vector_string.getCPtr(lines));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #9
0
    public static vector_string Repeat(string value, int count)
    {
        global::System.IntPtr cPtr = VisionLabPINVOKE.vector_string_Repeat(value, count);
        vector_string         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new vector_string(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #10
0
    public vector_string GetRange(int index, int count)
    {
        global::System.IntPtr cPtr = VisionLabPINVOKE.vector_string_GetRange(swigCPtr, index, count);
        vector_string         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new vector_string(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #11
0
            public override int run(int whereFrom)
            {
                var map = getVarMap();

                // foreach (var m in map)
                //   System.Diagnostics.Debug.WriteLine("{0} : {1}", m.Key, m.Value);
                string[] names = new string[2];
                for (int i = 1; i < 3; i++)
                {
                    names[i - 1] = Utils.getAMPLVarName("x", i, 1);
                }
                double[]      coeffs = new double[] { 4.5, 5 };
                vector_string v      = new vector_string(names);

                if (whereFrom == gsharp_c.GRB_CB_MESSAGE)
                {
                    string msg = getMessage();
                    Console.WriteLine(msg);
                }
                if ((whereFrom == gsharp_c.GRB_CB_MIPSOL_SOL) ||
                    (whereFrom == gsharp_c.GRB_CB_MIPNODE))
                {
                    double[] sol = new double[10];
                    getSolution(10, sol);
                }
                if (whereFrom == gsharp_c.GRB_CB_MIP)
                {
                    addLazy(v, coeffs, '0', 5);
                    count++;
                    Console.WriteLine("GRB_CB_MIP #{0}!", count);

                    if (count == 10)
                    {
                        return(1);
                    }
                }
                return(0);
            }
 public static void BlobAnalyseTabToVectorStr(vector_string vs, SWIGTYPE_p_std__setT_JL_VisionLib_V3__BlobAnalyse_t s, vector_Blob blobs) {
   VisionLabPINVOKE.BlobAnalyseTabToVectorStr__SWIG_1(vector_string.getCPtr(vs), SWIGTYPE_p_std__setT_JL_VisionLib_V3__BlobAnalyse_t.getCPtr(s), vector_Blob.getCPtr(blobs));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ParamsToArrayStr(vector_double p, vector_string vs) {
   VisionLabPINVOKE.ParamsToArrayStr(vector_double.getCPtr(p), vector_string.getCPtr(vs));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #14
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_string obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #15
0
 internal static HandleRef getCPtr(vector_string obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public static SWIGTYPE_p_std__mapT_std__string_int_t VectorsToMap_string_int(vector_string key, vector_int value) {
   SWIGTYPE_p_std__mapT_std__string_int_t ret = new SWIGTYPE_p_std__mapT_std__string_int_t(VisionLabPINVOKE.VectorsToMap_string_int(vector_string.getCPtr(key), vector_int.getCPtr(value)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void MapToVectors_string_int(SWIGTYPE_p_std__mapT_std__string_int_t keyvalue, vector_string key, vector_int value) {
   VisionLabPINVOKE.MapToVectors_string_int(SWIGTYPE_p_std__mapT_std__string_int_t.getCPtr(keyvalue), vector_string.getCPtr(key), vector_int.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public void GetWords(vector_string wordTab) {
   VisionLabPINVOKE.ClassLexicon_GetWords(swigCPtr, vector_string.getCPtr(wordTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }