Vector of sets of positive integers, each set stored as a singly linked list.
More...
|
void | add_element (size_t i, size_t element) |
| Add one element to a set. More...
|
|
void | assignment (size_t this_target, size_t other_source, const sparse_list &other) |
| Assign one set equal to another set. More...
|
|
void | binary_intersection (size_t this_target, size_t this_left, size_t other_right, const sparse_list &other) |
| Assign a set equal to the intersection of two other sets. More...
|
|
void | binary_union (size_t this_target, size_t this_left, size_t other_right, const sparse_list &other) |
| Assign a set equal to the union of two other sets. More...
|
|
void | clear (size_t target) |
| Assign the empty set to one of the sets. More...
|
|
size_t | end (void) const |
| Fetch end for this vector of sets object. More...
|
|
bool | is_element (size_t i, size_t element) const |
| check an element is in a set. More...
|
|
size_t | memory (void) const |
| Amount of memory used by this vector of sets. More...
|
|
size_t | n_set (void) const |
| Fetch n_set for vector of sets object. More...
|
|
size_t | number_elements (size_t i) const |
| Count number of elements in a set. More...
|
|
void | operator= (const sparse_list &other) |
| Assignement operator. More...
|
|
void | post_element (size_t i, size_t element) |
| Post an element for delayed addition to a set. More...
|
|
void | print (void) const |
| Print the vector of sets (used for debugging) More...
|
|
void | process_post (size_t i) |
| process post entries for a specific set. More...
|
|
void | resize (size_t n_set, size_t end) |
| Start a new vector of sets. More...
|
|
| sparse_list (void) |
| Default constructor (no sets) More...
|
|
| sparse_list (const sparse_list &v) |
| Using copy constructor is a programing (not user) error. More...
|
|
| ~sparse_list (void) |
| Destructor. More...
|
|
Vector of sets of positive integers, each set stored as a singly linked list.
All the public members for this class are also in the sparse_pack and sparse_vecsize classes. This defines the CppAD vector_of_sets concept.
Definition at line 35 of file sparse_list.hpp.