libbf  0.1
 All Classes Functions Typedefs Friends Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
bf::bitvector::reference Class Reference

An lvalue proxy for single bits. More...

#include <bitvector.h>

Public Member Functions

referenceflip ()
 
 operator bool () const
 
bool operator~ () const
 
referenceoperator= (bool x)
 
referenceoperator= (reference const &other)
 
referenceoperator|= (bool x)
 
referenceoperator&= (bool x)
 
referenceoperator^= (bool x)
 
referenceoperator-= (bool x)
 

Private Member Functions

void operator& ()=delete
 
 reference (block_type &block, block_type i)
 Constructs a bit from a block. More...
 

Private Attributes

block_type & block_
 
block_type const mask_
 

Friends

class bitvector
 

Detailed Description

An lvalue proxy for single bits.

Definition at line 25 of file bitvector.h.

Constructor & Destructor Documentation

bf::bitvector::reference::reference ( block_type &  block,
block_type  i 
)
private

Constructs a bit from a block.

Parameters
blockThe block to look at.
iThe bit position within block.

Definition at line 29 of file bitvector.cc.


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