Changes between Version 53 and Version 54 of LibrariesUnderConstruction


Ignore:
Timestamp:
May 12, 2009, 10:00:02 PM (13 years ago)
Author:
viboes
Comment:

Complete Bitfield description

Legend:

Unmodified
Added
Removed
Modified
  • LibrariesUnderConstruction

    v53 v54  
    139139 * '''Categories:''' [#Portability Portability]
    140140 * '''Description:'''Portable bitfields traits
     141
     142   * a generic bitfield traits class providing generic getter and setter methods.
     143   * a BOOST_BITFIELD_DCL macro making easier the definition of the bitfield traits and the bitfield getter and setter functions.
     144
     145{{{
     146#!cpp
     147    struct X {
     148        typedef boost::ubig_32 storage_type;
     149        storage_type d0;
     150        typedef unsigned int value_type;
     151        BOOST_BITFIELD_DCL(storage_type, d0, unsigned int, d00, 0, 10);
     152        BOOST_BITFIELD_DCL(storage_type, d0, unsigned int, d01, 11, 31);
     153    };
     154}}}
    141155
    142156---------------------------------------------------------------------------------------------------