#include "L1TopoCommon/StatusCode.h"
#include <iostream>
#include <vector>
#include <stdint.h>
Go to the source code of this file.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
const TCS::Decision & | dec ) |
Definition at line 23 of file Decision.cxx.
24 {
25 unsigned int bit = dec.
nBits();
27 o <<
"decision (1 bit, position " << dec.
firstBit() <<
"): ";
28 } else {
29 o <<
"decision (" << dec.
nBits() <<
" bits, position " << dec.
firstBit() <<
" - " << dec.
lastBit() <<
"): ";
30 }
31 while(bit!=0) {
32 o << (dec.
bit(--bit)?1:0);
33 }
34 o <<
"(overflow "<<dec.
overflow()<<
")";
35 return o;
36}
unsigned int lastBit() const
bool bit(unsigned int index) const
unsigned int nBits() const
unsigned int firstBit() const