Static Public Attributes

mask::BinInfo< N > Struct Template Reference

Exo 2 BinInfo. More...

#include <bin_info.hh>

List of all members.

Static Public Attributes

static const bool weakBit = N&1
static const unsigned int bloc0 = weakBit ? 0 : 1+BinInfo<N>>1>::bloc0
static const unsigned int bloc1

Detailed Description

template<unsigned int N>
struct mask::BinInfo< N >

Exo 2 BinInfo.

BinInfo<N> fournit des informations sur la valeur des bits de l'entier N
bitFaible : valeur du bit de poids faible
bloc0 : nombre de 0 avant le premier 1
bloc1 : taille du premier bloc de 1

Template Parameters:
N le nombre à tester

Definition at line 23 of file bin_info.hh.


Member Data Documentation

template<unsigned int N>
const unsigned int mask::BinInfo< N >::bloc0 = weakBit ? 0 : 1+BinInfo<N>>1>::bloc0 [static]

Definition at line 25 of file bin_info.hh.

template<unsigned int N>
const unsigned int mask::BinInfo< N >::bloc1 [static]
Initial value:
 weakBit ? ( BinInfo<N>>1>::weakBit  ?  1+BinInfo<N>>1>::bloc1 : 1 )
                                            :  BinInfo<N>>1>::bloc1

Definition at line 26 of file bin_info.hh.

template<unsigned int N>
const bool mask::BinInfo< N >::weakBit = N&1 [static]

Definition at line 24 of file bin_info.hh.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends