Dune::BitSetVectorConstReference< block_size, Alloc > Class Template Reference

#include <bitsetvector.hh>

Inheritance diagram for Dune::BitSetVectorConstReference< block_size, Alloc >:

Dune::BitSetVectorReference< block_size, Alloc >

List of all members.


Detailed Description

template<int block_size, class Alloc>
class Dune::BitSetVectorConstReference< block_size, Alloc >

A proxy class that acts as a const reference to a single bitset in a BitSetVector.

It contains a conversion to std::bitset and most of the interface of const std::bitset.

Warning:
As this is only a proxy class, you can not get the address of the bitset.

Public Member Functions

bitset operator<< (size_type n) const
 Returns a copy of *this shifted left by n bits.
bitset operator>> (size_type n) const
 Returns a copy of *this shifted right by n bits.
bitset operator~ () const
 Returns a copy of *this with all of its bits flipped.
size_type size () const
 Returns block_size.
size_type count () const
 Returns the number of bits that are set.
bool any () const
 Returns true if any bits are set.
bool none () const
 Returns true if no bits are set.
bool test (size_type n) const
 Returns true if bit n is set.
 operator bitset () const
 cast to bitset
bool operator== (const bitset &bs) const
 Equality of reference and std::bitset.
bool operator== (const BitSetVectorConstReference &bs) const
 Equality of reference and other reference.
bool operator!= (const bitset &bs) const
 Inequality of reference and std::bitset.
bool operator!= (const BitSetVectorConstReference &bs) const
 Inequality of reference and other reference.

Protected Member Functions

BitSetVectorConstReferenceoperator= (const BitSetVectorConstReference &b)
 hide assignment operator

Friends

std::ostream & operator<< (std::ostream &s, const BitSetVectorConstReference &v)

Friends And Related Function Documentation

template<int block_size, class Alloc>
std::ostream& operator<< ( std::ostream &  s,
const BitSetVectorConstReference< block_size, Alloc > &  v 
) [friend]

missing operators:

  • unsigned long to_ulong() const


The documentation for this class was generated from the following file:

Generated on Tue Jul 28 22:27:54 2009 for dune-common by  doxygen 1.5.6