CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PartitionGenerator.h
Go to the documentation of this file.
1 #ifndef _PartitionGenerator_H_
2 #define _PartitionGenerator_H_
3 
4 #include <vector>
5 
6 
14 
15 public:
16 
17  typedef std::vector<int> Partition;
18 
21  std::vector<Partition> partitions(int collectionSize,
22  int minCollectionSize = 1) const;
23 
28  std::vector< std::vector<Partition> >
29  sortedPartitions(int collectionSize, int minCollectionSize = 1) const;
30 
31 private:
34  public:
35  bool operator()(const Partition & a,
36  const Partition & b) {
37  return a.size() < b.size();
38  }
39  };
40 
41 };
42 
43 #endif
std::vector< std::vector< Partition > > sortedPartitions(int collectionSize, int minCollectionSize=1) const
std::vector< Partition > partitions(int collectionSize, int minCollectionSize=1) const
bool operator()(const Partition &a, const Partition &b)
double b
Definition: hdecay.h:120
std::vector< int > Partition
double a
Definition: hdecay.h:121