|
APRONXX 0.9.15
|
Array of linear constraints (ap_lincons0_array_t wrapper). More...
#include <apxx_lincons0.hh>
Inherits apron::use_malloc.
Public Member Functions | |
Constructors | |
| lincons0_array (size_t size) | |
| Creates a new array of the given size containing uninitialized constraints. | |
| lincons0_array (const lincons0_array &x) | |
| (Deep) copy. | |
| lincons0_array (const lincons0_array &x, const dimchange &d) | |
| Makes a (deep) copy of the array and applies add_dimensions to all constraints. | |
| lincons0_array (const lincons0_array &x, const dimperm &d) | |
| Makes a (deep) copy of the array and applies permute_dimensions to all constraints. | |
| lincons0_array (size_t size, const lincons0 x[]) | |
| Creates a lincons0_array from an array of constraints of the given size (copied). | |
| lincons0_array (const std::vector< lincons0 > &x) | |
| Creates a lincons0_array from a vector of constraints (copied). | |
Destructor | |
| ~lincons0_array () | |
| Frees the space used by the array and all its constraints. | |
Assignments | |
| lincons0_array & | operator= (const lincons0_array &x) |
| (Deep) copy. | |
| lincons0_array & | operator= (const lincons0 x[]) |
| Copies the constraints from the array into *this. | |
| lincons0_array & | operator= (const std::vector< lincons0 > &x) |
| Copies the constraints from the vector into the array, changing its size if needed. | |
Dimension operations | |
| void | resize (size_t size) |
| Resizes the array. | |
| void | add_dimensions (const dimchange &d) |
| Applies add_dimensions to all constraints in the array. | |
| void | permute_dimensions (const dimperm &d) |
| Applies permute_dimensions to all constraints in the array. | |
Accesses | |
| size_t | size () const |
| Returns the size of the array. | |
| lincons0 * | contents () |
| Returns a pointer to the start of the internal array holding the constraints. | |
| const lincons0 * | contents () const |
| Returns a pointer to the start of the internal array holding the constraints. | |
| lincons0 & | operator[] (size_t i) |
| Returns a (modifiable) reference to an element, no bound checking. | |
| const lincons0 & | operator[] (size_t i) const |
| Returns a reference to an element, no bound checking. | |
| lincons0 & | get (size_t i) |
| Returns a (modifiable) reference to an element (bound-checked). | |
| const lincons0 & | get (size_t i) const |
| Returns a reference to an element (bound-checked). | |
Conversion | |
| operator std::vector< lincons0 > () const | |
| Returns a copy of the linear constraints in the form of a vector. | |
Tests | |
| bool | is_linear () const |
| Whether all constraints are linear. | |
| bool | is_quasilinear () const |
| Whether all constraints are quasi-linear. | |
C API compatibility | |
| const ap_lincons0_array_t * | get_ap_lincons0_array_t () const |
| Returns a pointer to the internal APRON object stored in *this. | |
| ap_lincons0_array_t * | get_ap_lincons0_array_t () |
| Returns a pointer to the internal APRON object stored in *this. | |
Public Member Functions inherited from apron::use_malloc | |
| void * | operator new (size_t sz) |
| void * | operator new[] (size_t sz) |
| void | operator delete (void *p) |
| void | operator delete[] (void *p) |
Protected Member Functions | |
| lincons0_array (ap_lincons0_array_t &a) | |
| Internal use only. Performs a shallow copy and takes ownership of the contents. | |
Protected Attributes | |
| ap_lincons0_array_t | a |
| Structure managed by APRON. | |
Printing | |
| void | print (char **name_of_dim=NULL, FILE *stream=stdout) const |
| Prints to a C stream. | |
Array of linear constraints (ap_lincons0_array_t wrapper).
A lincons0_array represents an array of linear constraints.
|
inlineprotected |
Internal use only. Performs a shallow copy and takes ownership of the contents.
|
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.
|
inline |
(Deep) copy.
|
inline |
Makes a (deep) copy of the array and applies add_dimensions to all constraints.
|
inline |
Makes a (deep) copy of the array and applies permute_dimensions to all constraints.
|
inline |
Creates a lincons0_array from an array of constraints of the given size (copied).
|
inline |
Creates a lincons0_array from a vector of constraints (copied).
|
inline |
Frees the space used by the array and all its constraints.
|
inline |
Applies add_dimensions to all constraints in the array.
|
inline |
Returns a pointer to the start of the internal array holding the constraints.
|
inline |
Returns a pointer to the start of the internal array holding the constraints.
|
inline |
Returns a (modifiable) reference to an element (bound-checked).
| std::out_of_range | if the index is invalid. |
|
inline |
Returns a reference to an element (bound-checked).
| std::out_of_range | if the index is invalid. |
|
inline |
Returns a pointer to the internal APRON object stored in *this.
|
inline |
Returns a pointer to the internal APRON object stored in *this.
|
inline |
Whether all constraints are linear.
|
inline |
Whether all constraints are quasi-linear.
|
inline |
Returns a copy of the linear constraints in the form of a vector.
|
inline |
Copies the constraints from the array into *this.
|
inline |
(Deep) copy.
|
inline |
Copies the constraints from the vector into the array, changing its size if needed.
|
inline |
Returns a (modifiable) reference to an element, no bound checking.
|
inline |
Returns a reference to an element, no bound checking.
|
inline |
Applies permute_dimensions to all constraints in the array.
|
inline |
Prints to a C stream.
|
inline |
Resizes the array.
|
inline |
Returns the size of the array.
|
protected |
Structure managed by APRON.