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

In This Package:

Gaudi::Math::Digits< TYPE, N1, N2 > Struct Template Reference

simple structure for evaluation of range of decomal digits N1->N2 (N2 is excluded) for the integral type More...

#include <Digit.h>

Inheritance diagram for Gaudi::Math::Digits< TYPE, N1, N2 >:

[legend]
Collaboration diagram for Gaudi::Math::Digits< TYPE, N1, N2 >:
[legend]
List of all members.

Public Member Functions

 BOOST_STATIC_ASSERT (boost::integer_traits< TYPE >::is_specialized)
 BOOST_STATIC_ASSERT (boost::integer_traits< TYPE >::is_integral)
 BOOST_STATIC_ASSERT (!boost::integer_traits< TYPE >::is_signed)
int operator() (const TYPE v) const
 the only on eessential method

Detailed Description

template<class TYPE, unsigned int N1, unsigned int N2>
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

   const unsigned int value  = ... ;
 
   Digits<unsigned int,0,5> digits05 ;
  
   const int dig05 = digit05 ( value ) ;

Attention:
the least significat decimal digit is numbered as #0
Author:
Vanya BELYAEV Ivan/BElyaev.nl
Date:
2008-07-31

Definition at line 372 of file Digit.h.


Member Function Documentation

template<class TYPE, unsigned int N1, unsigned int N2>
Gaudi::Math::Digits< TYPE, N1, N2 >::BOOST_STATIC_ASSERT ( boost::integer_traits< TYPE >::is_specialized   ) 

Reimplemented from Gaudi::Math::detail::_Digits< TYPE, N1, N2 >.

template<class TYPE, unsigned int N1, unsigned int N2>
Gaudi::Math::Digits< TYPE, N1, N2 >::BOOST_STATIC_ASSERT ( boost::integer_traits< TYPE >::is_integral   ) 

Reimplemented from Gaudi::Math::detail::_Digits< TYPE, N1, N2 >.

template<class TYPE, unsigned int N1, unsigned int N2>
Gaudi::Math::Digits< TYPE, N1, N2 >::BOOST_STATIC_ASSERT ( !boost::integer_traits< TYPE >::is_signed   ) 

Reimplemented from Gaudi::Math::detail::_Digits< TYPE, N1, N2 >.

template<class TYPE, unsigned int N1, unsigned int N2>
int Gaudi::Math::detail::_Digits< TYPE, N1, N2 >::operator() ( const TYPE  v  )  const [inline, inherited]

the only on eessential method

Definition at line 249 of file Digit.h.

00249 { return (v/val1)%val2 ; }


The documentation for this struct was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

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