ATLAS Offline Software
Loading...
Searching...
No Matches
CombinationsGenerator.cxx File Reference
#include "./CombinationsGenerator.h"
#include <iostream>
Include dependency graph for CombinationsGenerator.cxx:

Go to the source code of this file.

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 8 of file CombinationsGenerator.cxx.

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