Esempio n. 1
0
 /// <summary>
 /// Set in a DaK to a specific index.
 /// </summary>
 public void SetIn(ref DaK adak, int at)
 {
     if ((myDaKs != null) && (at <= (myDaKs.Length - 1)))
     {
         myIdx = at;
         SetIn(ref adak);
     }
 }
Esempio n. 2
0
 public DaIBase(DaK key,
                string longname,
                string shortname,
                DICnvtrBase cnvtr0,
                DICnvtrBase cnvtr1)
     : base(longname, shortname, cnvtr0, cnvtr1)
 {
     _key = key;
 }
Esempio n. 3
0
 /// <summary>
 /// Set in a DaK whereever the hell the index is.
 /// </summary>
 public void SetIn(ref DaK adak)
 {
     if (myDaKs != null)
     {
         myDaKs [myIdx] = adak;
         if (++myIdx >= myDaKs.Length)
         {
             myIdx = 0;
         }
     }
 }
Esempio n. 4
0
        /// <summary>
        /// Get out the DaK at the index, updates index.
        /// </summary>
        public DaK GetOut(int at)
        {
            DaK r = null;

            if ((myDaKs != null) && (at <= (myDaKs.Length - 1)))
            {
                myIdx = at;
                r     = GetOut();
            }
            return(r);
        }
Esempio n. 5
0
        /// <summary>
        /// Get out the next DaK, updates index.
        /// </summary>
        public DaK GetOut()
        {
            DaK r = null;

            if (myDaKs != null)
            {
                r = myDaKs[myIdx];
                if (++myIdx >= myDaKs.Length)
                {
                    myIdx = 0;
                }
            }
            return(r);
        }
Esempio n. 6
0
 /// <summary>
 /// Get out multiple DaKs; silently wraps around.
 /// </summary>
 public DaK[] GetOut(int quant, int at)
 {
     DaK[] r = null;
     if ((myDaKs != null) && (quant <= myDaKs.Length) && (at <= (myDaKs.Length - 1)))
     {
         r     = new DaK[quant];
         myIdx = at;
         for (int i = 0; i < quant; i++)
         {
             r[i] = GetOut();
         }
     }
     if ((myDaKs != null) && (quant <= myDaKs.Length))
     {
     }
     return(r);
 }
Esempio n. 7
0
 /// <summary>
 /// Get out DaKs.  May return less than quant; never wrapsaround.
 /// </summary>
 public DaK[] GetOut(int quant, int at, ref bool wouldwrap)
 {
     DaK[] r = null;
     wouldwrap = false;
     if ((myDaKs != null) && (quant <= myDaKs.Length) && (at <= (myDaKs.Length - 1)))
     {
         r     = new DaK[quant];
         myIdx = at;
         for (int i = 0; (i < quant) && !wouldwrap; i++)
         {
             r [i] = GetOut();
             if (myIdx == 0)
             {
                 wouldwrap = true;
             }
         }
     }
     return(r);
 }
Esempio n. 8
0
 public MBAdaptBase(DaK k, ECMBBase emb)
 {
     myK   = k;
     myEmb = emb;
 }
Esempio n. 9
0
 public MBAdaptBase(DaK k)
 {
     myK = k;
 }
Esempio n. 10
0
 public DaIAdaptBase(DaK k, DaIBase daii)
 {
     myK    = k;
     myDaii = daii;
 }
Esempio n. 11
0
 public DaIAdaptBase(DaK k)
 {
     myK = k;
 }
Esempio n. 12
0
 public ECMsg(DaK k)
 {
     K = k;
 }