Esempio n. 1
0
 public void Swap(VectorUint16Pair vector)
 {
     Interop.VectorUint16Pair.VectorUint16Pair_Swap(swigCPtr, VectorUint16Pair.getCPtr(vector));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
        public VectorUint16Pair Assign(VectorUint16Pair vector)
        {
            VectorUint16Pair ret = new VectorUint16Pair(Interop.VectorUint16Pair.Assign(SwigCPtr, VectorUint16Pair.getCPtr(vector)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 3
0
        public void VectorUint16PairContructor()
        {
            tlog.Debug(tag, $"VectorUint16PairContructor START");

            var testingTarget = new VectorUint16Pair();

            Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
            Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"VectorUint16PairContructor END (OK)");
        }
Esempio n. 4
0
        public void VectorUint16PairAssign()
        {
            tlog.Debug(tag, $"VectorUint16PairAssign START");

            using (VectorUint16Pair vector = new VectorUint16Pair())
            {
                var testingTarget = vector.Assign(vector);
                Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
                Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"VectorUint16PairAssign END (OK)");
        }
Esempio n. 5
0
        public void VectorUint16ResizeWithUint16Pair()
        {
            tlog.Debug(tag, $"VectorUint16ResizeWithUint16Pair START");

            var testingTarget = new VectorUint16Pair();

            Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
            Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

            try
            {
                testingTarget.Resize(1, new Uint16Pair());
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"VectorUint16ResizeWithUint16Pair END (OK)");
        }
Esempio n. 6
0
        public void VectorUint16InsertWith3Parameters()
        {
            tlog.Debug(tag, $"VectorUint16InsertWith3Parameters START");

            var testingTarget = new VectorUint16Pair();

            Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
            Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

            try
            {
                testingTarget.Insert(new Uint16Pair(0, 0), testingTarget.Begin(), testingTarget.End());
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"VectorUint16InsertWith3Parameters END (OK)");
        }
Esempio n. 7
0
        public void VectorUint16PushBack()
        {
            tlog.Debug(tag, $"VectorUint16PairPushBack START");

            var testingTarget = new VectorUint16Pair();

            Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
            Assert.IsInstanceOf <VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");

            try
            {
                testingTarget.PushBack(new Uint16Pair());
                var result = testingTarget.ValueOfIndex(0);
                tlog.Debug(tag, "ValueOfIndex :" + result);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"VectorUint16PairPushBack END (OK)");
        }
Esempio n. 8
0
 public VectorUint16Pair(VectorUint16Pair vector) : this(Interop.VectorUint16Pair.NewVectorUint16Pair(VectorUint16Pair.getCPtr(vector)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VectorUint16Pair obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr);
 }
Esempio n. 10
0
 public VectorUint16Pair(VectorUint16Pair vector) : this(NDalicPINVOKE.new_VectorUint16Pair__SWIG_1(VectorUint16Pair.getCPtr(vector)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }