Main Page   Reference Manual   Compound List   File List  

libecc::bitset_invertible< n, inverted > Class Template Reference

A bitset with a fixed number of bits, having possibly an infinite number of leading virtual 1's. More...

#include <libecc/bitset.h>

Inheritance diagram for libecc::bitset_invertible< n, inverted >:

Inheritance graph
[legend]
Collaboration diagram for libecc::bitset_invertible< n, inverted >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<unsigned int n, bool inverted>
class libecc::bitset_invertible< n, inverted >

A bitset with a fixed number of bits, having possibly an infinite number of leading virtual 1's.

When dealing with expressions, short bitsets are assumed to have leading zeros. This class however can represent an 'inverted' bitset, meaning that it has an infinite number of leading ones.

The use of this class should be restricted to (optimized out) temporaries in expressions like a = ~b; or a |= b & ~c. The user should not use this class directly.

See also:
libecc::operator~(bitset_invertible< n, inverted > const &bits)
Parameters:
n  The number of bits in the bitset.
inverted  True when each internal bit has the opposite meaning.

Copyright © 2002 Carlo Wood.  All rights reserved.