C-Breeze
C Compiler Infrastructure

[ Project home page]

Bits Class Reference

#include <bits.h>

List of all members.

Public Member Functions

void reset_all (void)
void set_all (void)
 Bits (int nn)
 Bits (Bits &other)
 ~Bits (void)
Bitsoperator= (Bits &rhs)
int size (void)
void set (int pos, bool val)
void set (int pos)
void copy (Bits *b)
void reset (int pos)
bool value (int pos)
void And (Bits *other)
void Or (Bits *other)
void Not (void)
void Difference (Bits *other)
Bitsclone (void)

Private Attributes

unsigned int * ints
int n
int nints

Friends

bool operator== (Bits &a, Bits &b)
bool operator!= (Bits &a, Bits &b)
ostream & operator<< (ostream &out, Bits &a)


Constructor & Destructor Documentation

Bits::Bits int  nn  )  [inline]
 

Definition at line 58 of file bits.h.

References BITS_PER_INT, ints, n, nints, and reset_all().

Referenced by clone().

Bits::Bits Bits other  )  [inline]
 

Definition at line 66 of file bits.h.

References copy(), ints, n, and nints.

Bits::~Bits void   )  [inline]
 

Definition at line 74 of file bits.h.

References ints.


Member Function Documentation

void Bits::And Bits other  )  [inline]
 

Definition at line 121 of file bits.h.

Referenced by Difference().

Bits* Bits::clone void   )  [inline]
 

Definition at line 156 of file bits.h.

References Bits(), ints, and n.

void Bits::copy Bits b  )  [inline]
 

Definition at line 105 of file bits.h.

References ints.

Referenced by Bits(), Difference(), and operator=().

void Bits::Difference Bits other  )  [inline]
 

Definition at line 136 of file bits.h.

References And(), copy(), n, and Not().

void Bits::Not void   )  [inline]
 

Definition at line 131 of file bits.h.

References ints, and nints.

Referenced by Difference().

Bits& Bits::operator= Bits rhs  )  [inline]
 

Definition at line 78 of file bits.h.

References copy(), ints, n, and nints.

void Bits::Or Bits other  )  [inline]
 

Definition at line 126 of file bits.h.

References ints, and nints.

void Bits::reset int  pos  )  [inline]
 

Definition at line 109 of file bits.h.

void Bits::reset_all void   )  [inline]
 

Definition at line 49 of file bits.h.

References ints, and nints.

Referenced by Bits().

void Bits::set int  pos  )  [inline]
 

Definition at line 101 of file bits.h.

References set().

void Bits::set int  pos,
bool  val
[inline]
 

Definition at line 91 of file bits.h.

References BITS_PER_INT, and ints.

Referenced by set(), and set_all().

void Bits::set_all void   )  [inline]
 

Definition at line 53 of file bits.h.

References n, and set().

int Bits::size void   )  [inline]
 

Definition at line 89 of file bits.h.

References n.

bool Bits::value int  pos  )  [inline]
 

Definition at line 113 of file bits.h.


Friends And Related Function Documentation

bool operator!= Bits a,
Bits b
[friend]
 

Definition at line 152 of file bits.h.

ostream& operator<< ostream &  out,
Bits a
[friend]
 

Definition at line 162 of file bits.h.

bool operator== Bits a,
Bits b
[friend]
 

Definition at line 143 of file bits.h.


Member Data Documentation

unsigned int* Bits::ints [private]
 

Definition at line 45 of file bits.h.

Referenced by Bits(), clone(), copy(), Not(), operator=(), Or(), reset_all(), set(), and ~Bits().

int Bits::n [private]
 

Definition at line 46 of file bits.h.

Referenced by Bits(), clone(), Difference(), operator=(), set_all(), and size().

int Bits::nints [private]
 

Definition at line 46 of file bits.h.

Referenced by Bits(), Not(), operator=(), Or(), and reset_all().


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

Generated on February 1, 2006
Back to the C-Breeze home page