ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/test/utils/GenerateCombination.hpp
(Generate patch)

Comparing trunk/test/utils/GenerateCombination.hpp (file contents):
Revision 171 by tim, Thu Oct 28 06:16:45 2004 UTC vs.
Revision 172 by tim, Thu Oct 28 06:23:42 2004 UTC

# Line 86 | Line 86 | bool next_combination(std::vector<int> sequence, int t
86                  for(int i = 0; i < currentSize; i++)
87                      sequence[i] = beginIndex + i;
88                  sequence.push_back(beginIndex + currentSize);
89 <            }            
89 >                
90 >                return true;
91 >            }            
92          } else {
93              ++sequence[j];
94  
95              for(int k = j + 1; k < currentSize; k++)
96                  sequence[k] = sequence[k-1] + 1;
97  
98 +            return true;
99          }
100          
101          
# Line 101 | Line 104 | bool next_combination(std::vector<int> sequence, int t
104   }
105  
106   } //end namespace oopse
107 < #endif //UTILS_GENERATECOMBINATION_HPP
107 > #endif //UTILS_GENERATECOMBINATION_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines