myBitString Class Reference

#include <myBitString_generic.H>

Collaboration diagram for myBitString:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void optisize (void)
 myBitString (void)
 ~myBitString (void)
 myBitString (const myBitString &rhs)
myBitStringoperator= (const myBitString &rhs)
int count (const bool b=true) const
int first (const bool b=true) const
int next (int pos, const bool b=true) const
int last (const bool b=true) const
int prev (int pos, const bool b=true) const
void invert (const int pos)
bool test_and_invert (const int pos)
bool test (const int pos) const
void set (const int pos, const bool b=true)
void _xor (const myBitString &s)
const myBitStringoperator^= (const myBitString &s)
void _and (const myBitString &s1, const myBitString &s2)
template<typename T>
void test_and_add_carry (const myBitString &s2, T &CarryVec) const
void optisize (void)
 myBitString (void)
 ~myBitString (void)
 myBitString (const myBitString &rhs)
myBitStringoperator= (const myBitString &rhs)
int count (const bool b=true) const
int first (const bool b=true) const
int next (int pos, const bool b=true) const
int last (const bool b=true) const
int prev (int pos, const bool b=true) const
void invert (const int pos)
bool test_and_invert (const int pos)
bool test (const int pos) const
void set (const int pos, const bool b)
void set (const int pos)
void _xor (const myBitString &s)
const myBitStringoperator^= (const myBitString &s)
void _and (const myBitString &s1, const myBitString &s2)
template<typename T>
void test_and_add_carry (const myBitString &s2, T &CarryVec) const
void test_and_add_carry (const myBitString &s2, unsigned short int CarryVec[]) const
void test_and_add_carry (const myBitString &s2, unsigned int CarryVec[]) const
void optisize (void)
 myBitString (void)
 ~myBitString (void)
 myBitString (const myBitString &rhs)
myBitStringoperator= (const myBitString &rhs)
int count (const bool b=true) const
int first (const bool b=true) const
int next (int pos, const bool b=true) const
int last (const bool b=true) const
int prev (int pos, const bool b=true) const
void invert (const int pos)
bool test_and_invert (const int pos)
bool test (const int pos) const
void set (const int pos, const bool b)
void set (const int pos)
void _xor (const myBitString &s)
const myBitStringoperator^= (const myBitString &s)
void _and (const myBitString &s1, const myBitString &s2)
template<typename T>
void test_and_add_carry (const myBitString &s2, T &CarryVec) const
void test_and_add_carry (const myBitString &s2, unsigned short int CarryVec[]) const

Protected Member Functions

void resize (int newsize)
void resize (int newsize)
void resize (int newsize)

Protected Attributes

int size
unsigned int * data
unsigned int * data
BS_unsigned_intdata

Static Private Attributes

static const CmyBitMask
< unsigned int > 
bitmask

Classes

class  CmyBitMask


Detailed Description

Definition at line 16 of file myBitString_generic.H.


Constructor & Destructor Documentation

myBitString::myBitString ( void   )  [inline]

Definition at line 81 of file myBitString_generic.H.

myBitString::~myBitString ( void   )  [inline]

Definition at line 82 of file myBitString_generic.H.

References data, and size.

myBitString::myBitString ( const myBitString rhs  )  [inline]

Definition at line 88 of file myBitString_generic.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

myBitString::myBitString ( void   )  [inline]

Definition at line 70 of file myBitString_i386.H.

myBitString::~myBitString ( void   )  [inline]

Definition at line 71 of file myBitString_i386.H.

References data, and size.

myBitString::myBitString ( const myBitString rhs  )  [inline]

Definition at line 77 of file myBitString_i386.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

myBitString::myBitString ( void   )  [inline]

Definition at line 88 of file myBitString_X86_64.H.

myBitString::~myBitString ( void   )  [inline]

Definition at line 89 of file myBitString_X86_64.H.

References data, and size.

myBitString::myBitString ( const myBitString rhs  )  [inline]

Definition at line 95 of file myBitString_X86_64.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:


Member Function Documentation

void myBitString::resize ( int  newsize  )  [inline, protected]

Definition at line 31 of file myBitString_generic.H.

References cerr, data, endl(), exit(), nothrow, and size.

Referenced by _xor(), invert(), set(), and test_and_invert().

Here is the call graph for this function:

void myBitString::optisize ( void   )  [inline]

Definition at line 48 of file myBitString_generic.H.

References cerr, cout, data, endl(), exit(), nothrow, and size.

Referenced by CRelation::optisize().

Here is the call graph for this function:

myBitString& myBitString::operator= ( const myBitString rhs  )  [inline]

Definition at line 98 of file myBitString_generic.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

int myBitString::count ( const bool  b = true  )  const [inline]

Definition at line 111 of file myBitString_generic.H.

References data, and size.

Referenced by CRelation::convert_Relation_to_sparse(), and CRelation::SizeOfRelation().

int myBitString::first ( const bool  b = true  )  const [inline]

Definition at line 127 of file myBitString_generic.H.

References cerr, data, endl(), exit(), int, and size.

Referenced by CRelation::convert_Relation_to_sparse(), CRelation::is_valid(), next(), operator<<(), and CRelation::save().

Here is the call graph for this function:

int myBitString::next ( int  pos,
const bool  b = true 
) const [inline]

Definition at line 155 of file myBitString_generic.H.

References cerr, data, endl(), exit(), first(), int, and size.

Referenced by CRelation::convert_Relation_to_sparse(), CRelation::is_valid(), operator<<(), and CRelation::save().

Here is the call graph for this function:

int myBitString::last ( const bool  b = true  )  const [inline]

Definition at line 198 of file myBitString_generic.H.

References bitmask, cerr, data, endl(), exit(), int, and size.

Referenced by CRelation::combine(), CRelation::largest_factor_in_Relation(), prev(), and CRelation::second_largest_factor_in_Relation().

Here is the call graph for this function:

int myBitString::prev ( int  pos,
const bool  b = true 
) const [inline]

Definition at line 229 of file myBitString_generic.H.

References bitmask, cerr, data, endl(), exit(), last(), and size.

Referenced by CRelation::combine(), and CRelation::second_largest_factor_in_Relation().

Here is the call graph for this function:

void myBitString::invert ( const int  pos  )  [inline]

Definition at line 274 of file myBitString_generic.H.

References bitmask, data, int, resize(), and size.

Referenced by CRelation::combine().

Here is the call graph for this function:

bool myBitString::test_and_invert ( const int  pos  )  [inline]

Definition at line 284 of file myBitString_generic.H.

References bitmask, data, int, resize(), and size.

Referenced by CRelation::multi_combine_main().

Here is the call graph for this function:

bool myBitString::test ( const int  pos  )  const [inline]

Definition at line 294 of file myBitString_generic.H.

References bitmask, data, int, and size.

Referenced by CRelation::combine().

void myBitString::set ( const int  pos,
const bool  b = true 
) [inline]

Definition at line 303 of file myBitString_generic.H.

References bitmask, data, int, resize(), and size.

Referenced by CRelation::convert_Relation_to_dense().

Here is the call graph for this function:

void myBitString::_xor ( const myBitString s  )  [inline]

Definition at line 321 of file myBitString_generic.H.

References data, resize(), and size.

Referenced by operator^=().

Here is the call graph for this function:

const myBitString& myBitString::operator^= ( const myBitString s  )  [inline]

Definition at line 331 of file myBitString_generic.H.

References _xor().

Here is the call graph for this function:

void myBitString::_and ( const myBitString s1,
const myBitString s2 
) [inline]

Definition at line 336 of file myBitString_generic.H.

References data, MIN(), and size.

Here is the call graph for this function:

template<typename T>
void myBitString::test_and_add_carry ( const myBitString s2,
T &  CarryVec 
) const [inline]

Definition at line 360 of file myBitString_generic.H.

References data, int, MIN(), and size.

Referenced by CRelation::multi_combine_main().

Here is the call graph for this function:

void myBitString::resize ( int  newsize  )  [inline, protected]

Definition at line 20 of file myBitString_i386.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

void myBitString::optisize ( void   )  [inline]

Definition at line 37 of file myBitString_i386.H.

References cerr, cout, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

myBitString& myBitString::operator= ( const myBitString rhs  )  [inline]

Definition at line 87 of file myBitString_i386.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

int myBitString::count ( const bool  b = true  )  const [inline]

Definition at line 100 of file myBitString_i386.H.

References data, and size.

int myBitString::first ( const bool  b = true  )  const [inline]

Definition at line 115 of file myBitString_i386.H.

References cerr, data, endl(), exit(), and size.

Here is the call graph for this function:

int myBitString::next ( int  pos,
const bool  b = true 
) const [inline]

Definition at line 138 of file myBitString_i386.H.

References cerr, data, endl(), exit(), first(), and size.

Here is the call graph for this function:

int myBitString::last ( const bool  b = true  )  const [inline]

Definition at line 178 of file myBitString_i386.H.

References cerr, data, endl(), exit(), and size.

Here is the call graph for this function:

int myBitString::prev ( int  pos,
const bool  b = true 
) const [inline]

Definition at line 202 of file myBitString_i386.H.

References cerr, data, endl(), exit(), last(), and size.

Here is the call graph for this function:

void myBitString::invert ( const int  pos  )  [inline]

Definition at line 240 of file myBitString_i386.H.

References data, resize(), and size.

Here is the call graph for this function:

bool myBitString::test_and_invert ( const int  pos  )  [inline]

Definition at line 248 of file myBitString_i386.H.

References data, resize(), and size.

Here is the call graph for this function:

bool myBitString::test ( const int  pos  )  const [inline]

Definition at line 258 of file myBitString_i386.H.

References data, and size.

void myBitString::set ( const int  pos,
const bool  b 
) [inline]

Definition at line 265 of file myBitString_i386.H.

References data, resize(), and size.

Here is the call graph for this function:

void myBitString::set ( const int  pos  )  [inline]

Definition at line 282 of file myBitString_i386.H.

References data, resize(), and size.

Here is the call graph for this function:

void myBitString::_xor ( const myBitString s  )  [inline]

Definition at line 289 of file myBitString_i386.H.

References cerr, data, endl(), resize(), and size.

Here is the call graph for this function:

const myBitString& myBitString::operator^= ( const myBitString s  )  [inline]

Definition at line 301 of file myBitString_i386.H.

References _xor().

Here is the call graph for this function:

void myBitString::_and ( const myBitString s1,
const myBitString s2 
) [inline]

Definition at line 306 of file myBitString_i386.H.

References data, MIN(), and size.

Here is the call graph for this function:

template<typename T>
void myBitString::test_and_add_carry ( const myBitString s2,
T &  CarryVec 
) const [inline]

Definition at line 330 of file myBitString_i386.H.

References data, int, MIN(), and size.

Here is the call graph for this function:

void myBitString::test_and_add_carry ( const myBitString s2,
unsigned short int  CarryVec[] 
) const [inline]

Definition at line 366 of file myBitString_i386.H.

References __attribute__(), cerr, data, endl(), MIN(), and size.

Here is the call graph for this function:

void myBitString::test_and_add_carry ( const myBitString s2,
unsigned int  CarryVec[] 
) const [inline]

Definition at line 544 of file myBitString_i386.H.

References data, MIN(), and size.

Here is the call graph for this function:

void myBitString::resize ( int  newsize  )  [inline, protected]

Definition at line 38 of file myBitString_X86_64.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

void myBitString::optisize ( void   )  [inline]

Definition at line 55 of file myBitString_X86_64.H.

References cerr, cout, data, DW_per_BS_unsigned_int, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

myBitString& myBitString::operator= ( const myBitString rhs  )  [inline]

Definition at line 105 of file myBitString_X86_64.H.

References cerr, data, endl(), exit(), nothrow, and size.

Here is the call graph for this function:

int myBitString::count ( const bool  b = true  )  const [inline]

Definition at line 118 of file myBitString_X86_64.H.

References data, and size.

int myBitString::first ( const bool  b = true  )  const [inline]

Definition at line 133 of file myBitString_X86_64.H.

References BS_bits, cerr, data, endl(), exit(), and size.

Here is the call graph for this function:

int myBitString::next ( int  pos,
const bool  b = true 
) const [inline]

Definition at line 156 of file myBitString_X86_64.H.

References BS_bits, BS_mask, BS_shifts, cerr, data, endl(), exit(), first(), and size.

Here is the call graph for this function:

int myBitString::last ( const bool  b = true  )  const [inline]

Definition at line 196 of file myBitString_X86_64.H.

References BS_bits, cerr, data, endl(), exit(), and size.

Here is the call graph for this function:

int myBitString::prev ( int  pos,
const bool  b = true 
) const [inline]

Definition at line 220 of file myBitString_X86_64.H.

References BS_bits, BS_mask, BS_shifts, cerr, data, endl(), exit(), last(), and size.

Here is the call graph for this function:

void myBitString::invert ( const int  pos  )  [inline]

Definition at line 258 of file myBitString_X86_64.H.

References BS_shifts, data, resize(), and size.

Here is the call graph for this function:

bool myBitString::test_and_invert ( const int  pos  )  [inline]

Definition at line 268 of file myBitString_X86_64.H.

References BS_shifts, data, resize(), and size.

Here is the call graph for this function:

bool myBitString::test ( const int  pos  )  const [inline]

Definition at line 278 of file myBitString_X86_64.H.

References BS_shifts, data, and size.

void myBitString::set ( const int  pos,
const bool  b 
) [inline]

Definition at line 285 of file myBitString_X86_64.H.

References BS_shifts, data, resize(), and size.

Here is the call graph for this function:

void myBitString::set ( const int  pos  )  [inline]

Definition at line 302 of file myBitString_X86_64.H.

References BS_shifts, data, resize(), and size.

Here is the call graph for this function:

void myBitString::_xor ( const myBitString s  )  [inline]

Definition at line 309 of file myBitString_X86_64.H.

References cerr, data, endl(), resize(), and size.

Here is the call graph for this function:

const myBitString& myBitString::operator^= ( const myBitString s  )  [inline]

Definition at line 321 of file myBitString_X86_64.H.

References _xor().

Here is the call graph for this function:

void myBitString::_and ( const myBitString s1,
const myBitString s2 
) [inline]

Definition at line 326 of file myBitString_X86_64.H.

References data, MIN(), and size.

Here is the call graph for this function:

template<typename T>
void myBitString::test_and_add_carry ( const myBitString s2,
T &  CarryVec 
) const [inline]

Definition at line 350 of file myBitString_X86_64.H.

References data, MIN(), and size.

Here is the call graph for this function:

void myBitString::test_and_add_carry ( const myBitString s2,
unsigned short int  CarryVec[] 
) const [inline]

Definition at line 464 of file myBitString_X86_64.H.

References data, MIN(), and size.

Here is the call graph for this function:


Member Data Documentation

const CmyBitMask<unsigned int> myBitString::bitmask [static, private]

Definition at line 27 of file myBitString_generic.H.

Referenced by invert(), last(), prev(), set(), test(), and test_and_invert().

int myBitString::size [protected]

Definition at line 29 of file myBitString_generic.H.

Referenced by _and(), _xor(), count(), first(), invert(), last(), myBitString(), next(), operator=(), optisize(), prev(), resize(), set(), test(), test_and_add_carry(), test_and_invert(), and ~myBitString().

unsigned int* myBitString::data [protected]

Definition at line 30 of file myBitString_generic.H.

Referenced by _and(), _xor(), count(), first(), invert(), last(), myBitString(), next(), operator=(), optisize(), prev(), resize(), set(), test(), test_and_add_carry(), test_and_invert(), and ~myBitString().

unsigned int* myBitString::data [protected]

Definition at line 19 of file myBitString_i386.H.

BS_unsigned_int* myBitString::data [protected]

Definition at line 37 of file myBitString_X86_64.H.


The documentation for this class was generated from the following files:
Generated on Wed Nov 7 23:32:00 2007 for Qsieve by  doxygen 1.5.4