APRONXX
0.9.12
|
Array of generators (ap_generator0_array_t wrapper). More...
#include <apxx_generator0.hh>
Inherits apron::use_malloc.
Public Member Functions | |
Constructors | |
generator0_array (size_t size) | |
Creates a new array of the given size containing uninitialized generators. More... | |
generator0_array (const generator0_array &x) | |
(Deep) copy. More... | |
generator0_array (const generator0_array &x, const dimchange &d) | |
Makes a (deep) copy of the array and applies add_dimensions to all generators. More... | |
generator0_array (const generator0_array &x, const dimperm &d) | |
Makes a (deep) copy of the array and applies permute_dimensions to all generators. More... | |
generator0_array (size_t size, const generator0 x[]) | |
Creates a generator0_array from an array of generators of the given size (copied). More... | |
generator0_array (const std::vector< generator0 > &x) | |
Creates a generator0_array from a vector of generators (copied). More... | |
Destructor | |
~generator0_array () | |
Frees the space used by the array and all its generators. More... | |
Assignments | |
generator0_array & | operator= (const generator0_array &x) |
(Deep) copy. More... | |
generator0_array & | operator= (const generator0 x[]) |
Copies the generators from the array into *this. More... | |
generator0_array & | operator= (const std::vector< generator0 > &x) |
Copies the generators from the vector into the array, changing its size if needed. More... | |
Dimension operations | |
void | resize (size_t size) |
Resizes the array. More... | |
void | add_dimensions (const dimchange &d) |
Applies add_dimensions to all generators in the array. More... | |
void | permute_dimensions (const dimperm &d) |
Applies permute_dimensions to all generators in the array. More... | |
Access | |
size_t | size () const |
Returns the size of the array. More... | |
generator0 * | contents () |
Returns a pointer to the start of the internal array holding the generators. More... | |
const generator0 * | contents () const |
Returns a pointer to the start of the internal array holding the generators. More... | |
generator0 & | operator[] (size_t i) |
Returns a (modifiable) reference to an element, no bound checking. More... | |
const generator0 & | operator[] (size_t i) const |
Returns a reference to an element, no bound checking. More... | |
generator0 & | get (size_t i) |
Returns a (modifiable) reference to an element (bound-checked). More... | |
const generator0 & | get (size_t i) const |
Returns a reference to an element (bound-checked). More... | |
Conversion | |
operator std::vector< generator0 > () const | |
Returns a copy of the generators in the form of a vector. More... | |
C API compatibility | |
const ap_generator0_array_t * | get_ap_generator0_array_t () const |
Returns a pointer to the internal APRON object stored in *this. More... | |
ap_generator0_array_t * | get_ap_generator0_array_t () |
Returns a pointer to the internal APRON object stored in *this. More... | |
![]() | |
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 | |
generator0_array (ap_generator0_array_t &a) | |
Internal use only. Performs a shallow copy and takes ownership of the contents. More... | |
Protected Attributes | |
ap_generator0_array_t | a |
Structure managed by APRON. More... | |
Printing | |
std::ostream & | operator<< (std::ostream &os, const generator0_array &s) |
Printing. More... | |
void | print (char **name_of_dim=NULL, FILE *stream=stdout) const |
Prints to a C stream. More... | |
Array of generators (ap_generator0_array_t wrapper).
A generator0_array represents an array of generator(s).
|
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 generators.
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 generators.
|
inline |
Makes a (deep) copy of the array and applies permute_dimensions to all generators.
|
inline |
Creates a generator0_array from an array of generators of the given size (copied).
|
inline |
Creates a generator0_array from a vector of generators (copied).
|
inline |
Frees the space used by the array and all its generators.
|
inline |
Applies add_dimensions to all generators in the array.
|
inline |
Returns a pointer to the start of the internal array holding the generators.
|
inline |
Returns a pointer to the start of the internal array holding the generators.
|
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 |
Returns a copy of the generators in the form of a vector.
|
inline |
(Deep) copy.
|
inline |
Copies the generators from the array into *this.
|
inline |
Copies the generators 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 generators in the array.
|
inline |
Prints to a C stream.
|
inline |
Resizes the array.
|
inline |
Returns the size of the array.
|
friend |
Printing.
Variable naming can be configured through the varname stream modifier.
std::invalid_argument | an underlying expression is missing. |
|
protected |
Structure managed by APRON.