array of interval(s).
More...
#include <apxx_interval.hh>
Inherits apron::use_malloc.
|
| | interval_array (size_t size, ap_interval_t **c) |
| | Internal use only. Reference an array created with ap_interval_array_alloc. More...
|
| |
|
| size_t | sz |
| | Array size. More...
|
| |
| ap_interval_t ** | c |
| | Array of pointers to intervals. More...
|
| |
| interval_array::interval_array |
( |
size_t |
size, |
|
|
ap_interval_t ** |
c |
|
) |
| |
|
inlineprotected |
Internal use only. Reference an array created with ap_interval_array_alloc.
| interval_array::interval_array |
( |
size_t |
size | ) |
|
|
inline |
Creates a new interval array.
All elements are initially [0;0] intervals with double scalar bounds.
Makes a copy of an interval array (copying all elements).
| interval_array::interval_array |
( |
const std::vector< interval > & |
x | ) |
|
|
inline |
Makes a interval array from an interval vector (copying all elements).
| interval_array::interval_array |
( |
size_t |
size, |
|
|
const interval |
x[] |
|
) |
| |
|
inline |
Makes a interval array from an interval array of give size (copying all elements).
| interval_array::~interval_array |
( |
| ) |
|
|
inline |
Frees the space occupied by the array and all its elements.
| interval ** interval_array::contents |
( |
| ) |
|
|
inline |
Returns a pointer to the start of the array of elements used internally.
| interval & interval_array::get |
( |
size_t |
i | ) |
|
|
inline |
Returns a (modifiable) reference to an element (bound-checked).
- Exceptions
-
| std::out_of_range | if the index is invalid. |
| const interval & apron::interval_array::get |
( |
size_t |
i | ) |
const |
|
inline |
Returns a reference to an element (bound-checked).
- Exceptions
-
| std::out_of_range | if the index is invalid. |
| const ap_interval_t *const * apron::interval_array::get_ap_interval_t_array |
( |
| ) |
const |
|
inline |
Returns a pointer to the internal APRON object stored in *this.
| ap_interval_t ** interval_array::get_ap_interval_t_array |
( |
| ) |
|
|
inline |
Returns a pointer to the internal APRON object stored in *this.
| interval_array::operator std::vector< interval > |
( |
| ) |
const |
|
inline |
Makes an interval vector from an interval array (copying all elements).
Copies an interval array into *this.
All elements are copied and the array size is updated if necessary.
Copies an interval vector into *this.
All elements are copied and the array size is updated if necessary.
Copies an interval array into *this.
The size of the interval_array is not changed. x should have enough elements to fill the interval_array.
| interval & interval_array::operator[] |
( |
size_t |
i | ) |
|
|
inline |
Returns a (modifiable) reference to an element, no bound checking.
| const interval & apron::interval_array::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
Returns a reference to an element, no bound checking.
| void interval_array::print |
( |
FILE * |
stream = stdout | ) |
const |
|
inline |
| size_t interval_array::size |
( |
| ) |
const |
|
inline |
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const interval_array & |
s |
|
) |
| |
|
friend |
| ap_interval_t** apron::interval_array::c |
|
protected |
Array of pointers to intervals.
| size_t apron::interval_array::sz |
|
protected |
The documentation for this class was generated from the following files: