/// <summary> /// Add a Dimension node to the leaf (lowest child) /// </summary> /// <param name="d"></param> public void addDescendant(DimNode d) { if (child_ != null) { child_.addDescendant(d); } else { child_ = d; } }
/// <summary> /// Add a dimension to the array /// </summary> /// <param name="dname">name of dimension</param> /// <param name="dcount">count of dimension elements</param> public DimNode addDimension(string dname, int dcount) { DimNode d = new DimNode(dname, dcount); if (dim_ == null) { dim_ = d; } else { dim_.addDescendant(d); } return(d); }