ATLAS Offline Software
Loading...
Searching...
No Matches
CombinationsGenerator.h File Reference
#include <algorithm>
#include <string>
#include <vector>
#include <sstream>
Include dependency graph for CombinationsGenerator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CombinationsGenerator
 generate all possible combinations of objects More...

Functions

std::ostream & operator<< (std::ostream &os, const CombinationsGenerator &cg)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const CombinationsGenerator & cg )

Definition at line 27 of file CombinationsGenerator.cxx.

7 {
8 os << "CombinationsGenerator m_invalid " <<std::boolalpha << cg.m_invalid
9 << " bitmask len " << cg.m_bitmask.size()
10 << " m_bitmask: ";
11 for (const auto& c : cg.m_bitmask) {
12 if (c == 0) {
13 os << 0 << " ";
14 } else if (c == 1) {
15 os << 1 << " ";
16 } else {
17 os << '?' << " ";
18 }
19 }
20 os << " m_N " << cg.m_N << " m_K " << cg.m_K;
21
22 os << '\n';
23 return os;
24}