| APRONXX 0.9.15
    | 
Dimension permutation object (ap_dimperm_t wrapper). More...
#include <apxx_dimension.hh>
Inherits apron::use_malloc.
| Public Member Functions | |
| Constructors | |
| dimperm (size_t size=0) | |
| Makes an uninitialized dimperm of the given size. | |
| dimperm (size_t size, const ap_dim_t d[]) | |
| Makes a dimperm initialized with the array d. | |
| dimperm (const std::vector< ap_dim_t > &d) | |
| Makes a dimperm initialized with the vector d. | |
| dimperm (id t) | |
| Makes an identity permutation. | |
| dimperm (const dimperm &x, bool inv=false) | |
| Makes a copy of a permutation, optionally inverting it. | |
| dimperm (const dimperm &x, const dimperm &y) | |
| Makes a new dimperm that is the composition of two permutations. | |
| Destructor | |
| ~dimperm () | |
| Assignments | |
| dimperm & | operator= (const dimperm &x) | 
| Copies x. | |
| dimperm & | operator= (id t) | 
| Assigns the identity permutation to *this. | |
| dimperm & | operator= (const ap_dim_t d[]) | 
| Assigns the permutation from the array d to *this. | |
| dimperm & | operator= (const std::vector< ap_dim_t > &d) | 
| Assigns the permutation from the vector d to *this (changing its size). | |
| Accesses, size | |
| size_t | size () const | 
| Returns the size of the permutation. | |
| ap_dim_t & | operator[] (size_t dim) | 
| Returns a (modifiable) reference to the image of dim. | |
| const ap_dim_t & | operator[] (size_t dim) const | 
| Returns a reference to the image of dim. | |
| ap_dim_t & | get (size_t dim) | 
| Returns a (modifiable) reference to the image of dim (bound-checked). | |
| const ap_dim_t & | get (size_t dim) const | 
| Returns a reference to the image of dim (bound-checked). | |
| C API compatibility | |
| const ap_dimperm_t * | get_ap_dimperm_t () const | 
| Returns a pointer to the internal APRON object stored in *this. | |
| ap_dimperm_t * | get_ap_dimperm_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 Attributes | |
| ap_dimperm_t | c | 
| Structure managed by APRON. | |
| Printing | |
| void | print (FILE *stream=stdout) const | 
| Prints to a C stream. | |
| Operators | |
| dimperm & | operator*= (const dimperm &y) | 
| Composes *this with y. | |
| void | invert () | 
| Inverts *this. | |
| dimperm | operator- () const | 
| Returns a new dimperm that is the inverse of *this. | |
Dimension permutation object (ap_dimperm_t wrapper).
dimperm objects can be used to permute dimensions in expressions, constraints, and domains. They hold a map i->p[i]: [0,size-1]=>[0,size-1] using an array p of dimensions. All the p[i] must be distinct and in the range [0,size-1] where size is the size of p.
| 
 | inline | 
Makes an uninitialized dimperm of the given size.
| 
 | inline | 
Makes a dimperm initialized with the array d.
d should contain (at least) size dimensions. | 
 | inline | 
Makes a dimperm initialized with the vector d.
| 
 | inline | 
Makes an identity permutation.
| 
 | inline | 
Makes a copy of a permutation, optionally inverting it.
Makes a new dimperm that is the composition of two permutations.
| 
 | inline | 
| 
 | inline | 
Returns a (modifiable) reference to the image of dim (bound-checked).
| std::out_of_range | is thrown if dim>=size. | 
| 
 | inline | 
Returns a reference to the image of dim (bound-checked).
| std::out_of_range | is thrown if dim>=size. | 
| 
 | 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 | 
Inverts *this.
Composes *this with y.
| std::invalid_argument | if *this and y do not have the same size. | 
| 
 | inline | 
Returns a new dimperm that is the inverse of *this.
| 
 | inline | 
Assigns the permutation from the array d to *this.
d should contain (at least) size dimensions. | 
 | inline | 
Assigns the permutation from the vector d to *this (changing its size).
| 
 | inline | 
Returns a (modifiable) reference to the image of dim.
dim should be strictly smaller than size (not bound-checked). | 
 | inline | 
Returns a reference to the image of dim.
dim should be strictly smaller than size (not bound-checked). | 
 | inline | 
Prints to a C stream.
| 
 | inline | 
Returns the size of the permutation.
| 
 | protected | 
Structure managed by APRON.