#include <source/hierarchy/variables/ComponentSelector.h>
Public Member Functions | |
ComponentSelector (const bool flag=false) | |
ComponentSelector (const ComponentSelector &flags) | |
~ComponentSelector () | |
int | getSize () const |
ComponentSelector & | operator= (const ComponentSelector &flags) |
bool | operator== (const ComponentSelector &flags) const |
bool | operator!= (const ComponentSelector &flags) const |
ComponentSelector | operator| (const ComponentSelector &flags) const |
ComponentSelector | operator & (const ComponentSelector &flags) const |
ComponentSelector | operator! () const |
ComponentSelector | andNot (const ComponentSelector &flags) const |
ComponentSelector & | operator|= (const ComponentSelector &flags) |
ComponentSelector & | operator &= (const ComponentSelector &flags) |
bool | isSet (const int i) const |
void | setFlag (const int i) |
void | clrFlag (const int i) |
void | setAllFlags () |
void | clrAllFlags () |
void | printClassData (ostream &os=tbox::plog) const |
Print the bitvector data to the specified output stream. |
|
Create a component selector and initialize all bits to the specified default boolean flag value. If no default value is provided, then all bits are set to false. |
|
Copy construct a create a component selector identical to the argument. |
|
The destructor for a component selector does nothing interesting. |
|
Return total number of flags (i.e., bits) in this component selector. |
|
Set all bit settings in this component selector to those in the argument component selector. |
|
Compare two component selectors for equality in all bit positions. If all bits are logically equal, then the return value is true; otherwise, the return value is false. |
|
Compare two component selectors for inequality in any bit position. If any two bits are logically unequal, then true is returned; otherwise, false is returned. |
|
Generate and return a component selector set to the bitwise logical OR of this component selector and the argument component selector. |
|
Generate and return a component selector set to the bitwise logical AND of this component selector and the argument component selector. |
|
Generate and return a component selector set to the bitwise logical negation of this component selector. |
|
Generate and return a component selector set to the bitwise logical AND of this component selector and the bitwise logical negation of the argument component selector. |
|
Set all bit settings in this component selector to the bitwise logical OR of this component selector and the argument component selector. |
|
Set all bit settings in this component selector to the bitwise logical AND of this component selector and the argument component selector. |
|
Check whether the specified bit vector position is true. If so, return true; otherwise, return false. When assertion checking is active, an assertion will result if the given position is out-of-bounds. |
|
Set the specified bit vector position to true. When assertion checking is active, an assertion will result if the given position is out-of-bounds. |
|
Set the specified bit vector position to false. When assertion checking is active, an assertion will result if the given position is out-of-bounds. |
|
Set all bit vector positions to true. |
|
Set all bit vector positions to false. |
|
Print the bitvector data to the specified output stream.
|