#include <myBitString_generic.H>
Public Member Functions | |
void | optisize (void) |
myBitString (void) | |
~myBitString (void) | |
myBitString (const myBitString &rhs) | |
myBitString & | operator= (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 myBitString & | operator^= (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) | |
myBitString & | operator= (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 myBitString & | operator^= (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) | |
myBitString & | operator= (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 myBitString & | operator^= (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_int * | data |
Static Private Attributes | |
static const CmyBitMask < unsigned int > | bitmask |
Classes | |
class | CmyBitMask |
Definition at line 16 of file myBitString_generic.H.
myBitString::myBitString | ( | void | ) | [inline] |
Definition at line 81 of file myBitString_generic.H.
myBitString::~myBitString | ( | void | ) | [inline] |
myBitString::myBitString | ( | const myBitString & | rhs | ) | [inline] |
myBitString::myBitString | ( | void | ) | [inline] |
Definition at line 70 of file myBitString_i386.H.
myBitString::~myBitString | ( | void | ) | [inline] |
myBitString::myBitString | ( | const myBitString & | rhs | ) | [inline] |
myBitString::myBitString | ( | void | ) | [inline] |
Definition at line 88 of file myBitString_X86_64.H.
myBitString::~myBitString | ( | void | ) | [inline] |
myBitString::myBitString | ( | const myBitString & | rhs | ) | [inline] |
void myBitString::resize | ( | int | newsize | ) | [inline, protected] |
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().
myBitString& myBitString::operator= | ( | const myBitString & | rhs | ) | [inline] |
int myBitString::count | ( | const bool | b = true |
) | const [inline] |
Definition at line 111 of file myBitString_generic.H.
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().
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().
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().
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().
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().
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().
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().
void myBitString::_xor | ( | const myBitString & | s | ) | [inline] |
Definition at line 321 of file myBitString_generic.H.
References data, resize(), and size.
Referenced by operator^=().
const myBitString& myBitString::operator^= | ( | const myBitString & | s | ) | [inline] |
Definition at line 331 of file myBitString_generic.H.
References _xor().
void myBitString::_and | ( | const myBitString & | s1, | |
const myBitString & | s2 | |||
) | [inline] |
Definition at line 336 of file myBitString_generic.H.
References data, MIN(), and size.
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().
void myBitString::resize | ( | int | newsize | ) | [inline, protected] |
void myBitString::optisize | ( | void | ) | [inline] |
myBitString& myBitString::operator= | ( | const myBitString & | rhs | ) | [inline] |
int myBitString::count | ( | const bool | b = true |
) | const [inline] |
int myBitString::first | ( | const bool | b = true |
) | const [inline] |
int myBitString::next | ( | int | pos, | |
const bool | b = true | |||
) | const [inline] |
int myBitString::last | ( | const bool | b = true |
) | const [inline] |
int myBitString::prev | ( | int | pos, | |
const bool | b = true | |||
) | const [inline] |
void myBitString::invert | ( | const int | pos | ) | [inline] |
Definition at line 240 of file myBitString_i386.H.
References data, resize(), and size.
bool myBitString::test_and_invert | ( | const int | pos | ) | [inline] |
Definition at line 248 of file myBitString_i386.H.
References data, resize(), and size.
bool myBitString::test | ( | const int | pos | ) | const [inline] |
void myBitString::set | ( | const int | pos, | |
const bool | b | |||
) | [inline] |
Definition at line 265 of file myBitString_i386.H.
References data, resize(), and size.
void myBitString::set | ( | const int | pos | ) | [inline] |
Definition at line 282 of file myBitString_i386.H.
References data, resize(), and size.
void myBitString::_xor | ( | const myBitString & | s | ) | [inline] |
const myBitString& myBitString::operator^= | ( | const myBitString & | s | ) | [inline] |
Definition at line 301 of file myBitString_i386.H.
References _xor().
void myBitString::_and | ( | const myBitString & | s1, | |
const myBitString & | s2 | |||
) | [inline] |
Definition at line 306 of file myBitString_i386.H.
References data, MIN(), and size.
void myBitString::test_and_add_carry | ( | const myBitString & | s2, | |
T & | CarryVec | |||
) | const [inline] |
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.
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.
void myBitString::resize | ( | int | newsize | ) | [inline, protected] |
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.
myBitString& myBitString::operator= | ( | const myBitString & | rhs | ) | [inline] |
int myBitString::count | ( | const bool | b = true |
) | const [inline] |
int myBitString::first | ( | const bool | b = true |
) | const [inline] |
int myBitString::next | ( | int | pos, | |
const bool | b = true | |||
) | const [inline] |
int myBitString::last | ( | const bool | b = true |
) | const [inline] |
int myBitString::prev | ( | int | pos, | |
const bool | b = true | |||
) | const [inline] |
void myBitString::invert | ( | const int | pos | ) | [inline] |
bool myBitString::test_and_invert | ( | const int | pos | ) | [inline] |
bool myBitString::test | ( | const int | pos | ) | const [inline] |
void myBitString::set | ( | const int | pos, | |
const bool | b | |||
) | [inline] |
void myBitString::set | ( | const int | pos | ) | [inline] |
void myBitString::_xor | ( | const myBitString & | s | ) | [inline] |
const myBitString& myBitString::operator^= | ( | const myBitString & | s | ) | [inline] |
Definition at line 321 of file myBitString_X86_64.H.
References _xor().
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.
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.
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.
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.