ATLAS Offline Software
Functions
SetPrint.h File Reference
#include <set>
#include <iostream>
#include "AsgMessaging/MsgStream.h"
Include dependency graph for SetPrint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
std::ostream & operator<< (std::ostream &out, const std::set< T > &var)
 Helper operator for printing std::set variables easily. More...
 
template<typename T >
MsgStream & operator<< (MsgStream &out, const std::set< T > &var)
 Helper operator for printing std::set variables easily. More...
 

Function Documentation

◆ operator<<() [1/2]

template<typename T >
MsgStream& operator<< ( MsgStream &  out,
const std::set< T > &  var 
)

Helper operator for printing std::set variables easily.

Definition at line 39 of file SetPrint.h.

39  {
40 
41  out << "[";
42  typename std::set< T >::const_iterator itr = var.begin();
43  typename std::set< T >::const_iterator end = var.end();
44  for( ; itr != end; ++itr ) {
45  out << *itr;
46  if( ++itr != end ) {
47  out << ", ";
48  }
49  --itr;
50  }
51  out << "]";
52 
53  return out;
54 }

◆ operator<<() [2/2]

template<typename T >
std::ostream& operator<< ( std::ostream &  out,
const std::set< T > &  var 
)

Helper operator for printing std::set variables easily.

Definition at line 20 of file SetPrint.h.

20  {
21 
22  out << "[";
23  typename std::set< T >::const_iterator itr = var.begin();
24  typename std::set< T >::const_iterator end = var.end();
25  for( ; itr != end; ++itr ) {
26  out << *itr;
27  if( ++itr != end ) {
28  out << ", ";
29  }
30  --itr;
31  }
32  out << "]";
33 
34  return out;
35 }
beamspotnt.var
var
Definition: bin/beamspotnt.py:1394
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93