--- trunk/OOPSE-2.0/src/utils/next_combination.hpp 2004/10/28 21:11:12 1678 +++ trunk/OOPSE-2.0/src/utils/next_combination.hpp 2004/10/28 22:26:32 1681 @@ -24,7 +24,7 @@ */ /** - * @file GenerateCombination.hpp + * @file next_combination.hpp * @author tlin * @date 10/27/2004 * @version 1.0 @@ -39,11 +39,9 @@ namespace oopse { namespace oopse { /** - * @fn bool next_combination(IteratorContainer& iterContainer, - * RandomAccessIterator first, RandomAccessIterator last) * @brief STL next_permuationtation like combination sequence generator. * Given the first and last iterator of a sequence, next_combination iteratively generates all - * possible combination. + * possible combinations. * @return if more combination is availiable, otherwise return false * @param iterContainer iterator container * @param first the first iterator @@ -66,6 +64,7 @@ namespace oopse { * //1 * //8 * //1 8 + * @endcode */ template > class IteratorContainer> bool next_combination(IteratorContainer& iterContainer, RandomAccessIterator first, RandomAccessIterator last) { @@ -81,15 +80,15 @@ bool next_combination(IteratorContainer::iterator>& cont, - * std::vector& sequence, std::vector& result, - * const std::string& wildCard) * @brief iteratively replace the sequence with wild cards * @return true if more combination sequence is avaliable, otherwise return true - * @param cont iterator container, if expect whole series of combination, just pass an empty iterator - * container. The user should not modify the iterator container + * @param cont iterator container, if expect the whole series of combinations, pass an empty iterator + * container. The user should not modify this iterator container * @param sequence the whole sequence used to generate combination * @param result a possible combination sequence which is set on return - * @wildCard the wild card string. Its value is "X" by default + * @param wildCard the wild card string. Its value is "X" by default * @note since next_combination never returns an empty sequence, replaceWildCard will not generate * one special combination, which is n identical wild cards (n is equal to the size of the passing sequence) * @@ -188,7 +184,7 @@ bool replaceWildCard(std::vector