Example #1
0
        public bool RemoveFrom(RescueArrayFragment existingObject)
        {
            bool myReturn = RemoveFrom3(nativeNdx
                                        , (existingObject == null) ? 0 : existingObject.nativeNdx);

            return(myReturn);
        }
Example #2
0
        public RescueArrayFragment NthObject(long ordinal)
        {
            long[] returnNdx = NthObject5x(nativeNdx
                                           , ordinal);
            if (returnNdx == null)
            {
                return(null);
            }
            else
            {
                RescueArrayFragment myReturn = null;
                switch ((int)returnNdx[1])
                {
                case RescueObject.R_RescueArrayDouble:
                    myReturn = new RescueArrayFragmentDouble(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayByte:
                    myReturn = new RescueArrayFragmentByte(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayShort:
                    myReturn = new RescueArrayFragmentShort(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayFloat:
                    myReturn = new RescueArrayFragmentFloat(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArray2dVector:
                    myReturn = new RescueArrayFragment2dVector(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArray3dVector:
                    myReturn = new RescueArrayFragment3dVector(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayInt:
                    myReturn = new RescueArrayFragmentInt(returnNdx[0]);
                    break;
                }
                return(myReturn);
            }
        }
Example #3
0
 public void AddTo(RescueArrayFragment newObject)
 {
     AddTo2(nativeNdx
            , (newObject == null) ? 0 : newObject.nativeNdx);
 }