Givaro
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
Bits Class Reference

Bits. More...

#include <givbits.h>

+ Collaboration diagram for Bits:

Public Types

typedef size_t base
 

Public Member Functions

 Bits ()
 
 Bits (const size_t n)
 
 Bits (const Bits &B)
 
 ~Bits ()
 
const Bits operator& (const Bits &A) const
 
Bitsandin (const Bits &A, const Bits B)
 
Bitsoperator&= (const Bits &A)
 
const Bits operator| (const Bits &A) const
 
Bitsorin (const Bits &A, const Bits B)
 
Bitsoperator|= (const Bits &A)
 
const Bits operator^ (const Bits &A) const
 
Bitsxorin (const Bits &A, const Bits B)
 
Bitsoperator^= (const Bits &A)
 
const Bits operator~ () const
 
Bitsnotin (const Bits &A)
 
Bitscopy (const Bits &src)
 
Bitsoperator= (const Bits &B)
 
Bitslogcopy (const Bits &src)
 
long numone () const
 
void indexofone (Array0< Bits::base > &) const
 
size_t length () const
 
void clear ()
 
void clear (const int i)
 
void set ()
 
void set (const int i)
 
int get (const int i) const
 
int operator[] (const int i) const
 
int operator[] (const size_t i) const
 
std::ostream & print (std::ostream &o) const
 

Protected Types

typedef Array0< Bits::baseRep
 

Protected Member Functions

 Bits (const Rep &r)
 

Protected Attributes

Rep rep
 

Friends

class GivModule
 

Detailed Description

Bits.

Member Typedef Documentation

typedef size_t base
typedef Array0<Bits::base> Rep
protected

Constructor & Destructor Documentation

Bits ( )
Bits ( const size_t  n)
Bits ( const Bits B)
~Bits ( )
Bits ( const Rep r)
protected

Member Function Documentation

const Bits operator& ( const Bits A) const
Bits & andin ( const Bits A,
const Bits  B 
)
Bits & operator&= ( const Bits A)
const Bits operator| ( const Bits A) const
Bits & orin ( const Bits A,
const Bits  B 
)
Bits & operator|= ( const Bits A)
const Bits operator^ ( const Bits A) const
Bits & xorin ( const Bits A,
const Bits  B 
)
Bits & operator^= ( const Bits A)
const Bits operator~ ( ) const
Bits & notin ( const Bits A)
Bits & copy ( const Bits src)
inline
Bits & operator= ( const Bits B)
inline
Bits & logcopy ( const Bits src)
inline
long numone ( ) const
void indexofone ( Array0< Bits::base > &  index) const
size_t length ( ) const
void clear ( )
void clear ( const int  i)
void set ( )
void set ( const int  i)
int get ( const int  i) const
int operator[] ( const int  i) const
int operator[] ( const size_t  i) const
std::ostream & print ( std::ostream &  o) const

Friends And Related Function Documentation

friend class GivModule
friend

Field Documentation

Rep rep
protected

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