// Remove all items from the instance of the CSet<Tsint> class. static void remove(IWriter& writer, CSet<Tsint>& a_rSet) { CALL writer << STR("CSet<Tsint>(") << STR("size = ") << a_rSet.getSize() << STR(")") << ln; CSet<Tsint>::TIterator it = a_rSet.getItFirst(); writer << STR("{") << ln; while (it.isValid()) { writer << STR(" removed item = ") << *it << ln; it.remove(); } writer << STR("}") << ln; }
// Write instance of the CSet<Tsint> class into the given writer. static void show(IWriter& writer, const CSet<Tsint>& a_crSet) { CALL writer << STR("CSet<Tsint>(") << STR("size = ") << a_crSet.getSize() << STR(")") << ln; CSet<Tsint>::TIteratorConst it = a_crSet.getItFirst(); if (it.isValid()) { writer << STR("{") << ln; do { writer << STR(" item = ") << *it << ln; } while (it.stepForward() == 1); writer << STR("}") << ln; } }