Treat an array of any-sized integers as a generic pointer/iterator. More...
#include <intarray.hh>
Public Types | |
typedef int | difference_type |
typedef uint64_t | value_type |
typedef uint64_t * | pointer |
typedef uint64_t & | reference |
typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
uint64_t | GetMax () |
Get the largest value storable in this type of integer. | |
intarray (int nbits, void *start=0) | |
Constructor; must specify the number of bits of the underlying array. | |
intarray (const intarray &right) | |
intarray & | operator= (const intarray &right) |
intarray & | operator= (void *start) |
bool | operator== (void *start) const |
bool | operator== (const intarray &right) const |
bool | operator!= (const intarray &right) const |
uint64_t | operator[] (int index) const |
uint64_t | operator* () const |
intarray & | operator++ () |
intarray | operator++ (int) |
intarray & | operator-- () |
intarray | operator-- (int) |
intarray | operator+ (int d) const |
intarray | operator- (int d) const |
int | operator- (const intarray &a) const |
intarray & | operator+= (int d) |
intarray & | operator-= (int d) |
Private Attributes | |
int | _nbits |
char * | _start |
int | _nchars |
uint64_t | _mask |
Treat an array of any-sized integers as a generic pointer/iterator.
Definition at line 16 of file intarray.hh.
intarray::intarray | ( | const intarray & | right | ) | [inline] |
right | copy constructor |
Definition at line 36 of file intarray.hh.
right | assignment operator |
Definition at line 45 of file intarray.hh.
intarray& intarray::operator= | ( | void * | start | ) | [inline] |
start | assignment operator to a raw pointer |
Definition at line 55 of file intarray.hh.