Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AlgCaddy.h File Reference

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#include "Handle.h"
#include "Record.h"

Go to the source code of this file.

Namespaces

namespace  Anp

Classes

class  Anp::AlgCaddy< T >

Functions

template<class T>
unsigned int NameWidth (const std::vector< AlgCaddy< T > > &vec)
template<class T>
unsigned int NumbWidth (const std::vector< AlgCaddy< T > > &vec)


Function Documentation

template<class T>
unsigned int NameWidth const std::vector< AlgCaddy< T > > &  vec  ) 
 

Definition at line 60 of file AlgCaddy.h.

Referenced by Anp::SelectCount::End().

00061    {
00062       unsigned int width = 0;      
00063       for(typename std::vector<AlgCaddy<T> >::const_iterator it = vec.begin(); it != vec.end(); ++it)
00064       {
00065          width = std::max<unsigned int>(width, (it -> name).size());
00066       }
00067 
00068       return width;
00069    }

template<class T>
unsigned int NumbWidth const std::vector< AlgCaddy< T > > &  vec  ) 
 

Definition at line 72 of file AlgCaddy.h.

Referenced by Anp::SelectCount::End().

00073    {
00074       unsigned int width = 0;      
00075       for(typename std::vector<AlgCaddy<T> >::const_iterator it = vec.begin(); it != vec.end(); ++it)
00076       {
00077          width = std::max<unsigned int>(width, it -> Width(it -> NSnarlAll));
00078          width = std::max<unsigned int>(width, it -> Width(it -> NSnarlOut));
00079          width = std::max<unsigned int>(width, it -> Width(it -> NEventAll));
00080          width = std::max<unsigned int>(width, it -> Width(it -> NEventAll));
00081          width = std::max<unsigned int>(width, it -> Width(static_cast<unsigned int>(it -> WEventAll)));
00082          width = std::max<unsigned int>(width, it -> Width(static_cast<unsigned int>(it -> WEventOut)));
00083       }
00084 
00085       return width;
00086    }


Generated on Thu Nov 1 11:53:49 2007 for loon by  doxygen 1.3.9.1