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

In This Package:

Gaudi::Math::detail::Check10< TYPE, N > Struct Template Reference

Simple Helper structure to check if the type is able to contain the certain number of decimal digits. More...

#include <Digit.h>

List of all members.


Public Types

 safe = ( N < (unsigned int) boost::integer_traits<TYPE>::digits10 )
 Nth digit is "save".
 value = ( N <= (unsigned int) boost::integer_traits<TYPE>::digits10 )
 Nth digit is still OK.
enum  { safe = ( N < (unsigned int) boost::integer_traits<TYPE>::digits10 ), value = ( N <= (unsigned int) boost::integer_traits<TYPE>::digits10 ) }

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)

Detailed Description

template<class TYPE, unsigned int N>
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.

Attention:
the least significat decimal digir is numbered as #0
Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2008-08-01

Definition at line 80 of file Digit.h.


Member Enumeration Documentation

template<class TYPE, unsigned int N>
anonymous enum

Enumerator:
safe  Nth digit is "save".
value  Nth digit is still OK.

Definition at line 87 of file Digit.h.

00088           {
00090             safe  = ( N <  (unsigned int) boost::integer_traits<TYPE>::digits10 ) ,
00092             value = ( N <= (unsigned int) boost::integer_traits<TYPE>::digits10 )
00093           } ;


Member Function Documentation

template<class TYPE, unsigned int N>
Gaudi::Math::detail::Check10< TYPE, N >::BOOST_STATIC_ASSERT ( boost::integer_traits< TYPE >::is_specialized   ) 

template<class TYPE, unsigned int N>
Gaudi::Math::detail::Check10< TYPE, N >::BOOST_STATIC_ASSERT ( boost::integer_traits< TYPE >::is_integral   ) 

template<class TYPE, unsigned int N>
Gaudi::Math::detail::Check10< TYPE, N >::BOOST_STATIC_ASSERT ( !boost::integer_traits< TYPE >::is_signed   ) 


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