The class Random_access_adaptor<IC> provides a random access for data structures. Either the data structure supports random access iterators or circulators where this class maps function calls to the iterator or circulator, or a STL std::vector is used to provide the random access. The iterator or circulator of the data structure are of type IC.
#include <CGAL/Random_access_adaptor.h>
| |
size type of the STL std::vector.
|
| |
invalid index.
| |
| |
empty random access index initialized to start at .
| |
| |
random access index initialized to the range [).
|
|
| |
reserve entries, if a std::vector is used internally. |
|
| |
returns iterator or circulator to
the -th item. Precondition: number of items in random_access. | ||
|
| |
adds at the end of the indices. |
Inverse_index and Random_access_value_adaptor.