/// <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); } }
public DaIBase(DaK key, string longname, string shortname, DICnvtrBase cnvtr0, DICnvtrBase cnvtr1) : base(longname, shortname, cnvtr0, cnvtr1) { _key = key; }
/// <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; } } }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
public MBAdaptBase(DaK k, ECMBBase emb) { myK = k; myEmb = emb; }
public MBAdaptBase(DaK k) { myK = k; }
public DaIAdaptBase(DaK k, DaIBase daii) { myK = k; myDaii = daii; }
public DaIAdaptBase(DaK k) { myK = k; }
public ECMsg(DaK k) { K = k; }