Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShBitSet Class Reference

A bitset. More...

#include <ShBitSet.hpp>

List of all members.

Public Member Functions

 ShBitSet ()
 Construct a bitset with size bits.
 ShBitSet (std::size_t size)
 ShBitSet (const ShBitSet &other)
ShBitSetoperator= (const ShBitSet &other)
ShBitSetoperator &= (const ShBitSet &other)
ShBitSetoperator|= (const ShBitSet &other)
ShBitSetoperator^= (const ShBitSet &other)
ShBitSet operator & (const ShBitSet &other) const
ShBitSet operator| (const ShBitSet &other) const
ShBitSet operator^ (const ShBitSet &other) const
ShBitSet operator~ () const
bool operator== (const ShBitSet &other) const
bool operator!= (const ShBitSet &other) const
bool full () const
bool empty () const
std::size_t size () const
bool operator[] (std::size_t i) const
ShBitRef operator[] (std::size_t i)


Detailed Description

A bitset.

The best of both worlds from std::vector<bool> and std::bitset. Run-time sized bitset with all the bit operations one may need.

Definition at line 62 of file ShBitSet.hpp.


Constructor & Destructor Documentation

SH::ShBitSet::ShBitSet  ) 
 

Construct a bitset with size bits.

By default all bits are set to 0.

  • size number of bits in the bitset.

Definition at line 73 of file ShBitSet.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 18:38:05 2005 for Sh by  doxygen 1.4.1