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() [1/5]
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() [2/5]
interval_array::interval_array |
( |
size_t |
size | ) |
|
|
inline |
Creates a new interval array.
All elements are initially [0;0] intervals with double scalar bounds.
◆ interval_array() [3/5]
Makes a copy of an interval array (copying all elements).
◆ interval_array() [4/5]
interval_array::interval_array |
( |
const std::vector< interval > & |
x | ) |
|
|
inline |
Makes a interval array from an interval vector (copying all elements).
◆ interval_array() [5/5]
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::~interval_array |
( |
| ) |
|
|
inline |
Frees the space occupied by the array and all its elements.
◆ contents()
interval ** interval_array::contents |
( |
| ) |
|
|
inline |
Returns a pointer to the start of the array of elements used internally.
◆ get() [1/2]
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. |
◆ get() [2/2]
const interval & 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. |
◆ get_ap_interval_t_array() [1/2]
const ap_interval_t *const * interval_array::get_ap_interval_t_array |
( |
| ) |
const |
|
inline |
Returns a pointer to the internal APRON object stored in *this.
◆ get_ap_interval_t_array() [2/2]
ap_interval_t ** interval_array::get_ap_interval_t_array |
( |
| ) |
|
|
inline |
Returns a pointer to the internal APRON object stored in *this.
◆ operator std::vector< interval >()
interval_array::operator std::vector< interval > |
( |
| ) |
const |
|
inline |
Makes an interval vector from an interval array (copying all elements).
◆ operator=() [1/3]
Copies an interval array into *this.
All elements are copied and the array size is updated if necessary.
◆ operator=() [2/3]
Copies an interval vector into *this.
All elements are copied and the array size is updated if necessary.
◆ operator=() [3/3]
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.
◆ operator[]() [1/2]
interval & interval_array::operator[] |
( |
size_t |
i | ) |
|
|
inline |
Returns a (modifiable) reference to an element, no bound checking.
◆ operator[]() [2/2]
const interval & interval_array::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
Returns a reference to an element, no bound checking.
◆ print()
void interval_array::print |
( |
FILE * |
stream = stdout | ) |
const |
|
inline |
◆ size()
size_t interval_array::size |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const interval_array & |
s |
|
) |
| |
|
friend |
ap_interval_t** apron::interval_array::c |
|
protected |
Array of pointers to intervals.
◆ sz
size_t apron::interval_array::sz |
|
protected |
The documentation for this class was generated from the following files: