Siena Fast Forwarding documentation (v. 1.0.0)

Main Page   Class Hierarchy   Compound List   File List   Compound Members   Examples  

bitvector Class Reference

#include <bitvector.h>

List of all members.

Public Methods

 bitvector (size_t size)
 ~bitvector ()
bool test (size_t pos) const
bool set (size_t pos)
void set (const ibitvector &x)
void clear ()
size_t get_count () const
size_t get_size () const

Private Methods

size_t element_size () const

Static Private Methods

size_t set (bv_atom_t *x, bv_atom_t *xe, const bv_atom_t *y, const bv_atom_t *ye)

Private Attributes

bv_atom_t * elements
const size_t size
size_t count


Detailed Description

fixed-size bit vector.

This bitvector is implemented by a single array.


Constructor & Destructor Documentation

bitvector::bitvector size_t    size
 

constructs a bitvector capable of holding size bits


Member Function Documentation

size_t bitvector::get_count   const
 

number of bits set to 1 *

size_t bitvector::get_size   const
 

total bit capacity *


The documentation for this class was generated from the following file:
Copyright © 2001-2002 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Antonio Carzaniga