APRONXX  0.9.12
Protected Member Functions | Protected Attributes | List of all members
apron::generator0_array Class Reference

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_arrayoperator= (const generator0_array &x)
 (Deep) copy. More...
 
generator0_arrayoperator= (const generator0 x[])
 Copies the generators from the array into *this. More...
 
generator0_arrayoperator= (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...
 
generator0contents ()
 Returns a pointer to the start of the internal array holding the generators. More...
 
const generator0contents () const
 Returns a pointer to the start of the internal array holding the generators. More...
 
generator0operator[] (size_t i)
 Returns a (modifiable) reference to an element, no bound checking. More...
 
const generator0operator[] (size_t i) const
 Returns a reference to an element, no bound checking. More...
 
generator0get (size_t i)
 Returns a (modifiable) reference to an element (bound-checked). More...
 
const generator0get (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...
 
- 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

 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...
 

Detailed Description

Array of generators (ap_generator0_array_t wrapper).

A generator0_array represents an array of generator(s).

Constructor & Destructor Documentation

◆ generator0_array() [1/7]

apron::generator0_array::generator0_array ( ap_generator0_array_t &  a)
inlineprotected

Internal use only. Performs a shallow copy and takes ownership of the contents.

◆ generator0_array() [2/7]

generator0_array::generator0_array ( size_t  size)
inline

Creates a new array of the given size containing uninitialized generators.

has_linexpr will return false on all elements of the array.

◆ generator0_array() [3/7]

generator0_array::generator0_array ( const generator0_array x)
inline

(Deep) copy.

◆ generator0_array() [4/7]

generator0_array::generator0_array ( const generator0_array x,
const dimchange d 
)
inline

Makes a (deep) copy of the array and applies add_dimensions to all generators.

◆ generator0_array() [5/7]

generator0_array::generator0_array ( const generator0_array x,
const dimperm d 
)
inline

Makes a (deep) copy of the array and applies permute_dimensions to all generators.

◆ generator0_array() [6/7]

generator0_array::generator0_array ( size_t  size,
const generator0  x[] 
)
inline

Creates a generator0_array from an array of generators of the given size (copied).

◆ generator0_array() [7/7]

generator0_array::generator0_array ( const std::vector< generator0 > &  x)
inline

Creates a generator0_array from a vector of generators (copied).

◆ ~generator0_array()

generator0_array::~generator0_array ( )
inline

Frees the space used by the array and all its generators.

Member Function Documentation

◆ add_dimensions()

void generator0_array::add_dimensions ( const dimchange d)
inline

Applies add_dimensions to all generators in the array.

◆ contents() [1/2]

generator0 * generator0_array::contents ( )
inline

Returns a pointer to the start of the internal array holding the generators.

◆ contents() [2/2]

const generator0 * generator0_array::contents ( ) const
inline

Returns a pointer to the start of the internal array holding the generators.

◆ get() [1/2]

generator0 & generator0_array::get ( size_t  i)
inline

Returns a (modifiable) reference to an element (bound-checked).

Exceptions
std::out_of_rangeif the index is invalid.

◆ get() [2/2]

const generator0 & generator0_array::get ( size_t  i) const
inline

Returns a reference to an element (bound-checked).

Exceptions
std::out_of_rangeif the index is invalid.

◆ get_ap_generator0_array_t() [1/2]

const ap_generator0_array_t * generator0_array::get_ap_generator0_array_t ( ) const
inline

Returns a pointer to the internal APRON object stored in *this.

◆ get_ap_generator0_array_t() [2/2]

ap_generator0_array_t * generator0_array::get_ap_generator0_array_t ( )
inline

Returns a pointer to the internal APRON object stored in *this.

◆ operator std::vector< generator0 >()

generator0_array::operator std::vector< generator0 > ( ) const
inline

Returns a copy of the generators in the form of a vector.

◆ operator=() [1/3]

generator0_array & generator0_array::operator= ( const generator0_array x)
inline

(Deep) copy.

◆ operator=() [2/3]

generator0_array & generator0_array::operator= ( const generator0  x[])
inline

Copies the generators from the array into *this.

  • x should contain (at least) size elements.

◆ operator=() [3/3]

generator0_array & generator0_array::operator= ( const std::vector< generator0 > &  x)
inline

Copies the generators from the vector into the array, changing its size if needed.

◆ operator[]() [1/2]

generator0 & generator0_array::operator[] ( size_t  i)
inline

Returns a (modifiable) reference to an element, no bound checking.

◆ operator[]() [2/2]

const generator0 & generator0_array::operator[] ( size_t  i) const
inline

Returns a reference to an element, no bound checking.

◆ permute_dimensions()

void generator0_array::permute_dimensions ( const dimperm d)
inline

Applies permute_dimensions to all generators in the array.

◆ print()

void generator0_array::print ( char **  name_of_dim = NULL,
FILE *  stream = stdout 
) const
inline

Prints to a C stream.

◆ resize()

void generator0_array::resize ( size_t  size)
inline

Resizes the array.

◆ size()

size_t generator0_array::size ( ) const
inline

Returns the size of the array.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const generator0_array s 
)
friend

Printing.

Variable naming can be configured through the varname stream modifier.

Exceptions
std::invalid_argumentan underlying expression is missing.

Member Data Documentation

◆ a

ap_generator0_array_t apron::generator0_array::a
protected

Structure managed by APRON.


The documentation for this class was generated from the following files: