Static Public Attributes

mask::Next< M > Struct Template Reference

Exo 3 Next. More...

#include <next.hh>

List of all members.

Static Public Attributes

static const unsigned int i = BinInfo<M>::bloc0
static const unsigned int j = BinInfo<M>::bloc1
static const unsigned int tmp1 = M | (1<<(i+j))
static const unsigned int tmp2 = tmp1 ^ IntervalMask<i,j>::val
static const unsigned int val = tmp2 | IntervalMask<0,j-1>::val

Detailed Description

template<unsigned int M>
struct mask::Next< M >

Exo 3 Next.

Calcule l'entier suivant avec le même nombre de bits à 1. Pour clarifier la correction, on distingue les étapes données dans l'énoncé

Template Parameters:
M l'entier à partir duquel on calcule le suivant

Definition at line 23 of file next.hh.


Member Data Documentation

template<unsigned int M>
const unsigned int mask::Next< M >::i = BinInfo<M>::bloc0 [static]

Definition at line 24 of file next.hh.

template<unsigned int M>
const unsigned int mask::Next< M >::j = BinInfo<M>::bloc1 [static]

Definition at line 25 of file next.hh.

template<unsigned int M>
const unsigned int mask::Next< M >::tmp1 = M | (1<<(i+j)) [static]

Definition at line 26 of file next.hh.

template<unsigned int M>
const unsigned int mask::Next< M >::tmp2 = tmp1 ^ IntervalMask<i,j>::val [static]

Definition at line 27 of file next.hh.

template<unsigned int M>
const unsigned int mask::Next< M >::val = tmp2 | IntervalMask<0,j-1>::val [static]

Definition at line 28 of file next.hh.


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