| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Digit.h File Reference

The collection of useful utilities for evaluation of decimal digits for the unsigned integral values. More...

#include "LHCbMath/TypeWrapper.h"
#include "LHCbMath/IPower.hpp"
#include "LHCbMath/Power.h"
#include "boost/integer_traits.hpp"
#include "boost/static_assert.hpp"

Include dependency graph for Digit.h:

Go to the source code of this file.


Namespaces

namespace  Gaudi
namespace  Gaudi::Math
namespace  Gaudi::Math::detail

Classes

struct  Gaudi::Math::detail::Check10< TYPE, N >
 Simple Helper structure to check if the type is able to contain the certain number of decimal digits. More...
struct  Gaudi::Math::detail::_IDigit< TYPE, I, N >
 Simple structure form compile-time evaluation of the decimal digit for the given number. More...
struct  Gaudi::Math::detail::_IDigits< TYPE, I, N1, N2 >
 Helper structure for compile-time evaluation of range N1->N2 of decimal digits from the integral type. More...
struct  Gaudi::Math::detail::_Digit< TYPE, N >
 Helper structure to geth Nth decimal digits from the integral type. More...
struct  Gaudi::Math::detail::__Dig10< TYPE, N, OK >
struct  Gaudi::Math::detail::__Dig10< TYPE, N, false >
struct  Gaudi::Math::detail::_Digits< TYPE, N1, N2 >
 Helper structure for evaluation of range N1->N2 of decimal digits from the integral type. More...
struct  Gaudi::Math::IDigit< TYPE, I, N >
 Simple structure form compile-time evaluation of the Nth decimal digit for the given number. More...
struct  Gaudi::Math::IDigits< TYPE, I, N1, N2 >
 Simple structr efor compile-time evaluation of the range of decimal digits N1->N2 (N2 is excluded) for the given integral type. More...
struct  Gaudi::Math::Digit< TYPE, N >
 simple structure for evaluation of Nth digit for the integral type More...
struct  Gaudi::Math::Digits< TYPE, N1, N2 >
 simple structure for evaluation of range of decomal digits N1->N2 (N2 is excluded) for the integral type More...

Defines

#define LHCBMATH_DIGIT_H   1

Functions

template<class TYPE>
TYPE Gaudi::Math::digit (const TYPE value, const unsigned int N)
 simple function which evaluate N-th decimal digit for the integral value
template<class TYPE>
TYPE Gaudi::Math::digits (const TYPE value, const unsigned int N1, const unsigned int N2)
 simple function which evaluate the range of decimal digits N1-.N2 (N2 is excluded) for the integral values

Detailed Description

The collection of useful utilities for evaluation of decimal digits for the unsigned integral values.

The utilities for evaluation of Nth decimal digit for the unsigned integral values:

The utilities for evaluation of decimal N1->N2 decimal digits for the unsigned integral values:

Attention:
the least significant decimal digit is numbered as #0
See also:
Gaudi::Math::IDigit

Gaudi::Math::Digit

Gaudi::Math::digit

Gaudi::Math::IDigits

Gaudi::Math::Digits

Gaudi::Math::digits

Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2008-08-01

Definition in file Digit.h.


Define Documentation

#define LHCBMATH_DIGIT_H   1

Definition at line 4 of file Digit.h.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:02:57 2011 for LHCbMath by doxygen 1.4.7