APRONXX
0.9.12
|
Variable name (ap_var_t wrapper). More...
#include <apxx_var.hh>
Public Member Functions | |
Constructors | |
Variable name. | |
var (const void *x) | |
Makes a variable name from a pointer (copied with ap_var_operations->copy). More... | |
var (const std::string &x) | |
Makes a variable name from a string (copied with ap_var_operations->copy). More... | |
var (const var &x) | |
Copies the variable name (calls ap_var_operations->copy). More... | |
Destructor | |
~var () | |
Frees the variable name (calls ap_var_operations->free). More... | |
Assignments | |
var & | operator= (const var &x) |
Assigns the variable name (calls ap_var_operations->copy, ->free). More... | |
var & | operator= (const std::string &x) |
Assigns the variable name (calls ap_var_operations->copy, ->free). More... | |
var & | operator= (const void *x) |
Assigns the variable name (calls ap_var_operations->copy, ->free). More... | |
Conversions | |
operator char * () const | |
Converts to a C string (calls ap_var_operations->to_string). More... | |
operator std::string () const | |
Converts to a C++ string (calls ap_var_operations->to_string). More... | |
C API compatibility | |
const ap_var_t & | get_ap_var_t () const |
Returns a reference to the APRON object wrapped (no copy). More... | |
ap_var_t & | get_ap_var_t () |
Returns a (modifiable) reference to the APRON object wrapped (no copy). More... | |
Protected Attributes | |
ap_var_t | v |
Friends | |
Comparisons | |
int | compare (const var &x, const var &y) |
Compares two variable names (calls ap_var_operations->to_compare). More... | |
bool | operator== (const var &x, const var &y) |
Compares two variables names (calls ap_var_operations->to_compare). More... | |
bool | operator!= (const var &x, const var &y) |
Compares two variable names (calls ap_var_operations->to_compare). More... | |
bool | operator>= (const var &x, const var &y) |
Compares two variable names (calls ap_var_operations->to_compare). More... | |
bool | operator<= (const var &x, const var &y) |
Compares two variable names (calls ap_var_operations->to_compare). More... | |
bool | operator> (const var &x, const var &y) |
Compares two variable names (calls ap_var_operations->to_compare). More... | |
bool | operator< (const var &x, const var &y) |
Compares two variable names (calls ap_var_operations->to_compare). More... | |
Printing | |
void | print (FILE *stream=stdout) const |
Prints to a C stream. More... | |
std::ostream & | operator<< (std::ostream &os, const var &s) |
Printing. More... | |
Variable name (ap_var_t wrapper).
A var object designates a variable name, using a void* pointer (i.e., ap_var_t). Variable names replace dimensions in all level 1 operations. Variable names can be copied, freed, compared, and converted to string. The actual implementation of these operators is defined using the global pointer ap_var_operations. By default, ap_var_operations implements dynamically allocated C-style NULL-terminated strings.
|
inline |
Makes a variable name from a pointer (copied with ap_var_operations->copy).
|
inline |
Makes a variable name from a string (copied with ap_var_operations->copy).
|
inline |
Copies the variable name (calls ap_var_operations->copy).
|
inline |
Frees the variable name (calls ap_var_operations->free).
|
inline |
Returns a reference to the APRON object wrapped (no copy).
|
inline |
Returns a (modifiable) reference to the APRON object wrapped (no copy).
|
inline |
Converts to a C string (calls ap_var_operations->to_string).
The C string should be freed with malloc by the caller.
|
inline |
Converts to a C++ string (calls ap_var_operations->to_string).
Assigns the variable name (calls ap_var_operations->copy, ->free).
|
inline |
Assigns the variable name (calls ap_var_operations->copy, ->free).
|
inline |
Assigns the variable name (calls ap_var_operations->copy, ->free).
|
inline |
Prints to a C stream.
Compares two variable names (calls ap_var_operations->to_compare).
Compares two variable names (calls ap_var_operations->to_compare).
Compares two variable names (calls ap_var_operations->to_compare).
|
friend |
Printing.
Compares two variable names (calls ap_var_operations->to_compare).
Compares two variables names (calls ap_var_operations->to_compare).
Compares two variable names (calls ap_var_operations->to_compare).
Compares two variable names (calls ap_var_operations->to_compare).
|
protected |