A bitvector is a special case of a vector which is more memory efficient than a generic vector and more time efficient than a bitstring.
|
adds a new element to the end of the ByteVector. automatically increases the capacity of the ByteVector if necessary
References check_magic, and resize(). |
|
computes AND to the element at the given index. if necessary the vector automatically increases its capacity.
References check_magic, and resize(). |
|
finds the current capacity of bitvector.
References check_magic. Referenced by bvClone(). |
|
creates an exact copy of the specified bitvector.
References bvCapacity(), bvCopy(), bvNew(), and check_magic. |
|
copies entries of one bitvector to another. copying is done from bitVector src to the bitvector dst. dst vector automatically increases its capacity.
Referenced by bvClone(). |
|
deletes a bitvector and frees the associated memory. note that nothing user-defined is stored in a bitvector. therefore, the user does not need to free anything himself.
References check_magic. |
|
sets the element at the specific index to a new element. if necessary the bitVector automatically increases its capacity.
References check_magic. |
|
inserts a new element at the given index. if necessary the bitvector automatically increases its capacity. inefficient method,not recommended.
References check_magic, and resize(). |
|
finds if the bit vector is empty or not.
References check_magic. |
|
creates a new empty bitvector with an initial capacity. Specifying a correct or nearly correct capacity slightly improves the efficiency. The bitvector roughly needs capacity bytes.
Referenced by bvClone(). |
|
computes NOT to the element at the given index. if necessary the vector automatically increases its capacity.
References check_magic, and resize(). |
|
computes OR to the element at the given index. if necessary the vector automatically increases its capacity.
References check_magic, and resize(). |
|
removes element at the specified index. size decreases and all later elements move one position to the front. inefficient method, not recommended.
References check_magic. |
|
sets all the elements to a new value. the size increases to the current capacity of the bit vector.
|
|
sets element at the given index. if necessary the vector automatically increases its capacity.
References check_magic, and resize(). |
|
sets all the elements between index from and to (excluding to) to a new value. if necesaary the bit vector automatically increases in capacity.
References check_magic, and resize(). |
|
finds the number of entries(size) in the bitvector.
References check_magic. |
|
doubles capacity of ByteVector.
References check_magic. Referenced by bitClear(), bitSet(), bvAddElement(), bvAndElement(), bvInsertElement(), bvNotElement(), bvOrElement(), bvSetElement(), and bvSetElements(). |