Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

BenzeneBitset.hpp File Reference

STL std::bitset extended with is_subset_of() and is_less_than(). More...

#include <cstddef>
#include <string>
#include <bits/functexcept.h>
#include "Benzene.hpp"
#include <sstream>
#include <exception>
#include "Benzene.hpp"

Go to the source code of this file.

Classes

struct  _Base_bitset< _Nw >
 Base class, general case. More...
struct  _Base_bitset< 1 >
 Base class, specialization for a single word. More...
struct  _Base_bitset< 0 >
 Base class, specialization for no storage (zero-length bitset). More...
struct  _Sanitize< _Extrabits >
struct  _Sanitize< 0 >
class  benzene_bitset< _Nb >
 The bitset class represents a fixed-size sequence of bits. More...
class  benzene_bitset< _Nb >::reference
 This encapsulates the concept of a single bit. More...

Defines

#define _GLIBCXX_BITSET_BITS_PER_WORD   (__CHAR_BIT__ * sizeof(unsigned long))
#define _GLIBCXX_BITSET_WORDS(__n)

Functions

template<class _CharT , class _Traits , size_t _Nb>
std::basic_ostream< _CharT,
_Traits > & 
operator<< (std::basic_ostream< _CharT, _Traits > &__os, const benzene_bitset< _Nb > &__x)

template<size_t _Nb>
benzene_bitset< _Nb > operator& (const benzene_bitset< _Nb > &__x, const benzene_bitset< _Nb > &__y)
 Global bitwise operations on bitsets.
template<size_t _Nb>
benzene_bitset< _Nb > operator| (const benzene_bitset< _Nb > &__x, const benzene_bitset< _Nb > &__y)
template<size_t _Nb>
benzene_bitset< _Nb > operator^ (const benzene_bitset< _Nb > &__x, const benzene_bitset< _Nb > &__y)

Detailed Description

STL std::bitset extended with is_subset_of() and is_less_than().

Todo:
Uses a lot of gcc builtins. Make this more portable?

Definition in file BenzeneBitset.hpp.


Define Documentation

#define _GLIBCXX_BITSET_BITS_PER_WORD   (__CHAR_BIT__ * sizeof(unsigned long))
#define _GLIBCXX_BITSET_WORDS ( __n   ) 
Value:

Definition at line 24 of file BenzeneBitset.hpp.


Function Documentation

template<size_t _Nb>
benzene_bitset<_Nb> operator& ( const benzene_bitset< _Nb > &  __x,
const benzene_bitset< _Nb > &  __y 
) [inline]

Global bitwise operations on bitsets.

Parameters:
__x A bitset.
__y A bitset of the same size as x.
Returns:
A new bitset.

These should be self-explanatory.

Definition at line 1200 of file BenzeneBitset.hpp.

template<class _CharT , class _Traits , size_t _Nb>
std::basic_ostream<_CharT, _Traits>& operator<< ( std::basic_ostream< _CharT, _Traits > &  __os,
const benzene_bitset< _Nb > &  __x 
) [inline]

Definition at line 1228 of file BenzeneBitset.hpp.

References benzene_bitset< _Nb >::_M_copy_to_string().

template<size_t _Nb>
benzene_bitset<_Nb> operator^ ( const benzene_bitset< _Nb > &  __x,
const benzene_bitset< _Nb > &  __y 
) [inline]

Definition at line 1218 of file BenzeneBitset.hpp.

template<size_t _Nb>
benzene_bitset<_Nb> operator| ( const benzene_bitset< _Nb > &  __x,
const benzene_bitset< _Nb > &  __y 
) [inline]

Definition at line 1209 of file BenzeneBitset.hpp.


6 Jan 2011 Doxygen 1.6.3