/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/include/tools/Toolbox.hh File Reference

#include <string>
#include "mTypes.h"

Include dependency graph for Toolbox.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Toolbox
struct  BinOut

Defines

#define NO_V   0
#define LAW_V   1
#define HIGHT_V   2

Functions

std::ostream & operator<< (std::ostream &out, const BinOut &x)


Define Documentation

#define NO_V   0

Definition at line 17 of file Toolbox.hh.

#define LAW_V   1

Definition at line 18 of file Toolbox.hh.

#define HIGHT_V   2

Definition at line 19 of file Toolbox.hh.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const BinOut x 
)

Definition at line 200 of file Toolbox.cpp.

00200                                                           {
00201 //  out << "0x" << hex << x._Num << dec << "=";
00202   //out << HexOut(x._Num, 2) << "=";
00203   for (unsigned int digit = x._Digits; digit > 0; digit--) {
00204     if ((digit != x._Digits) && (digit % 4 == 0))
00205       out << " ";
00206     out << ((x._Num >> (digit - 1)) & 0x1);
00207   }
00208   return(out);
00209 } // BinOut.operator <<


Generated on Mon Jan 7 13:16:33 2013 for MicromegasFramework by  doxygen 1.4.7