One describes here the iterators of the generic DataBase class only. The iterators of the specialized
versions of the class are described in Part III.
- “each_abbreviation” loops on the abbreviations stored in the DataBase. It produces pairs
of Strings corresponding to the name of the abbreviation, and to the corresponding value
respectively. Again, one insists on the fact that this iterator is defined in generic DataBase
class.
- “each_groupName” loops on the Groups stored in the DataBase and produces String
elements containing Group names.
- The iterator “each_resultKey” produces Arrays containing the keys to which stored Results are
associated. This iterator can be used in two different ways. Either:
db.each_resultKey do |lcName,scName,tpName|
...
end
or:
db.each_resultKey do |resKey|
...
end
In the second case, resKey is an Array containing three Strings.
- The following methods iterate on the CaseId, SubCaseId and ResultId corresponding to the
Results stored in the DataBase:
- “each_resultKeyCaseId”,
- “each_resultKeySubCaseId”,
- “each_resultKeyResId”.
Each iterator produces String elements.
- “each_resultKeyLcScId” iterator produces the pairs of load case names and subcase names for
which Results are stored in the DataBase. This iterator can for example be used as
follows:
db.each_resultLcScId do |lcName,scName|
...
end
However, if a single argument is passed in the block, it corresponds to an Array of two
Strings.