Array of linear constraints (ap_lincons1_array_t wrapper).
More...
#include <apxx_lincons1.hh>
Inherits apron::use_malloc.
|
ap_lincons1_array_t | a |
| Structure managed by APRON. More...
|
|
Array of linear constraints (ap_lincons1_array_t wrapper).
Level 1 version of linear constraint arrays. Internally, a lincons1_array wraps together a lincons0_array (memory managed) and an environment (holding a reference count). Please note that all constraints share the same environment!
◆ lincons1_array() [1/7]
lincons1_array::lincons1_array |
( |
ap_lincons1_array_t & |
a | ) |
|
|
inlineprotected |
Internal use only. Shallow copy (no copy of lincons0_array or environment).
◆ lincons1_array() [2/7]
Creates a new constraint array from a lincons0_array (copied) and an environment (reference count incremented) associating names to dimensions.
◆ lincons1_array() [3/7]
lincons1_array::lincons1_array |
( |
const environment & |
e, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Creates a new array of the given size containing uninitialized constraints.
has_modulo and has_linexpr will return false on all elements of the array.
e
associates a variable name to each dimension (reference count incremented).
◆ lincons1_array() [4/7]
◆ lincons1_array() [5/7]
Makes a (deep) copy of x and extends its environment.
- Exceptions
-
std::invalid_argument | if e is not a super-environment of that of x. |
◆ lincons1_array() [6/7]
apron::lincons1_array::lincons1_array |
( |
size_t |
size, |
|
|
const lincons1 |
x[] |
|
) |
| |
|
inline |
Creates a lincons1_array from an array (of size >0) of constraints of the given size (copied).
- Warning
- assumes that all constraints have the same environment (unchecked).
- Exceptions
-
std::invalid_argument | if size<1. |
◆ lincons1_array() [7/7]
lincons1_array::lincons1_array |
( |
const std::vector< lincons1 > & |
x | ) |
|
|
inline |
Creates a lincons1_array from an vector (of size >0) of constraints of the given size (copied).
- Warning
- assumes that all constraints have the same environment (unchecked).
- Exceptions
-
std::invalid_argument | if vector size<1. |
◆ ~lincons1_array()
lincons1_array::~lincons1_array |
( |
| ) |
|
|
inline |
Frees the space used by the array and all its constraints, and decrements the reference count of the environment.
◆ extend_environment()
void lincons1_array::extend_environment |
( |
const environment & |
e | ) |
|
|
inline |
Extends the environment of all expressions in array.
- Exceptions
-
std::invalid_argument | if e is not a super-environment of that of *this. |
◆ get()
lincons1 lincons1_array::get |
( |
size_t |
i | ) |
const |
|
inline |
Returns a copy of the constraint at index i.
- Exceptions
-
std::out_of_range | if i exceeds the dimension of the array. |
◆ get_ap_lincons1_array_t() [1/2]
const ap_lincons1_array_t * lincons1_array::get_ap_lincons1_array_t |
( |
| ) |
const |
|
inline |
Returns a pointer to the internal APRON object stored in *this.
◆ get_ap_lincons1_array_t() [2/2]
ap_lincons1_array_t * lincons1_array::get_ap_lincons1_array_t |
( |
| ) |
|
|
inline |
Returns a pointer to the internal APRON object stored in *this.
◆ get_environment()
Returns the environment shared by all constraints (with incremented reference count).
◆ get_lincons0_array() [1/2]
◆ get_lincons0_array() [2/2]
◆ operator std::vector< lincons1 >()
lincons1_array::operator std::vector< lincons1 > |
( |
| ) |
const |
|
inline |
Returns a copy of the linear constraints in the form of a vector.
◆ operator=() [1/3]
◆ operator=() [2/3]
Copies the constraints from the array into *this.
- Warning
- assumes that all constraints have the same environment (unchecked).
- x should contain (at least) size elements.
◆ operator=() [3/3]
Copies the constraints from the vector into the array, changing its size if needed.
- Warning
- assumes that all constraints have the same environment (unchecked).
◆ print()
void lincons1_array::print |
( |
FILE * |
stream = stdout | ) |
const |
|
inline |
◆ resize()
void lincons1_array::resize |
( |
size_t |
size | ) |
|
|
inline |
◆ set()
void lincons1_array::set |
( |
size_t |
i, |
|
|
const lincons1 & |
x |
|
) |
| |
|
inline |
Changes the constraint at index i.
- Warning
- assumes that x and *this have equal environments.
- Exceptions
-
std::out_of_range | if i exceeds the dimension of the array. |
◆ size()
size_t lincons1_array::size |
( |
| ) |
const |
|
inline |
Returns the size of the array.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const lincons1_array & |
s |
|
) |
| |
|
friend |
Printing.
- Exceptions
-
std::invalid_argument | an underlying expression is missing, or an auxiliary scalar is missing (for modulo constraint). |
ap_lincons1_array_t apron::lincons1_array::a |
|
protected |
Structure managed by APRON.
The documentation for this class was generated from the following files: