CppAD: A C++ Algorithmic Differentiation Package
20171217
|
Public Types | |
typedef bool | value_type |
type corresponding to the elements of this vector (note that non-const elements actually use vectorBoolElement) More... | |
Public Member Functions | |
size_t | capacity (void) const |
maximum number of elements current allocation can store More... | |
void | clear (void) |
free memory and set number of elements to zero More... | |
vectorBool & | operator= (const vectorBool &v) |
vector assignment operator More... | |
vectorBool & | operator= (vectorBool &&x) |
vector assignment operator with move semantics More... | |
vectorBoolElement | operator[] (size_t k) |
non-constant element access; i.e., we can change this element value More... | |
bool | operator[] (size_t k) const |
constant element access; i.e., we cannot change this element value More... | |
void | push_back (bool bit) |
add an element to the back of this vector More... | |
template<class Vector > | |
void | push_vector (const Vector &v) |
add vector to the back of this vector More... | |
void | resize (size_t n) |
change number of elements in this vector More... | |
size_t | size (void) const |
number of elements in this vector More... | |
vectorBool (void) | |
default constructor (sets all member data to zero) More... | |
vectorBool (size_t n) | |
sizing constructor More... | |
vectorBool (const vectorBool &v) | |
copy constructor More... | |
~vectorBool (void) | |
destructor More... | |
Static Public Member Functions | |
static size_t | bit_per_unit (void) |
Private Types | |
typedef size_t | UnitType |
the boolean data is packed with sizeof(UnitType) bits per value More... | |
Private Member Functions | |
size_t | unit_min (void) |
minimum number of UnitType values that can store length_ bits (note that this is really a function of length_) More... | |
Private Attributes | |
UnitType * | data_ |
pointer to where the bits are stored More... | |
size_t | length_ |
number of bits currently stored in this vector More... | |
size_t | n_unit_ |
number of UnitType values in data_ More... | |
Static Private Attributes | |
static const size_t | bit_per_unit_ = std::numeric_limits<UnitType>::digits |
number of bits packed into each UnitType value in data_ More... | |
Definition at line 645 of file vector.hpp.