Struct Set

Source
pub struct Set {
    pub ptr: uintptr_t,
    pub should_free_on_drop: bool,
}
Expand description

Wraps isl_set.

Fields§

§ptr: uintptr_t§should_free_on_drop: bool

Implementations§

Source§

impl Set

Source

pub fn n_dim(&self) -> i32

Wraps isl_set_n_dim.

Source

pub fn n_param(&self) -> i32

Wraps isl_set_n_param.

Source

pub fn tuple_dim(&self) -> i32

Wraps isl_set_tuple_dim.

Source

pub fn dim(&self, type_: DimType) -> i32

Wraps isl_set_dim.

Source

pub fn get_ctx(&self) -> Context

Wraps isl_set_get_ctx.

Source

pub fn get_space(&self) -> Space

Wraps isl_set_get_space.

Source

pub fn reset_space(self, space: Space) -> Set

Wraps isl_set_reset_space.

Source

pub fn has_tuple_name(&self) -> bool

Wraps isl_set_has_tuple_name.

Source

pub fn get_tuple_name(&self) -> &str

Wraps isl_set_get_tuple_name.

Source

pub fn set_tuple_name(self, s: &str) -> Set

Wraps isl_set_set_tuple_name.

Source

pub fn has_dim_name(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_has_dim_name.

Source

pub fn get_dim_name(&self, type_: DimType, pos: u32) -> &str

Wraps isl_set_get_dim_name.

Source

pub fn set_dim_name(self, type_: DimType, pos: u32, s: &str) -> Set

Wraps isl_set_set_dim_name.

Source

pub fn set_dim_id(self, type_: DimType, pos: u32, id: Id) -> Set

Wraps isl_set_set_dim_id.

Source

pub fn has_dim_id(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_has_dim_id.

Source

pub fn get_dim_id(&self, type_: DimType, pos: u32) -> Id

Wraps isl_set_get_dim_id.

Source

pub fn set_tuple_id(self, id: Id) -> Set

Wraps isl_set_set_tuple_id.

Source

pub fn reset_tuple_id(self) -> Set

Wraps isl_set_reset_tuple_id.

Source

pub fn has_tuple_id(&self) -> bool

Wraps isl_set_has_tuple_id.

Source

pub fn get_tuple_id(&self) -> Id

Wraps isl_set_get_tuple_id.

Source

pub fn reset_user(self) -> Set

Wraps isl_set_reset_user.

Source

pub fn find_dim_by_id(&self, type_: DimType, id: &Id) -> i32

Wraps isl_set_find_dim_by_id.

Source

pub fn find_dim_by_name(&self, type_: DimType, name: &str) -> i32

Wraps isl_set_find_dim_by_name.

Source

pub fn remove_redundancies(self) -> Set

Wraps isl_set_remove_redundancies.

Source

pub fn read_from_str(ctx: &Context, str_: &str) -> Set

Wraps isl_set_read_from_str.

Examples found in repository?
examples/hash_isl_set.rs (line 5)
3fn main() {
4    let ctx = isl::Context::alloc();
5    let set = isl::Set::read_from_str(&ctx, "{[i, j]: 0<=i<1024 and 0<=j<512}");
6    set.dump();
7    println!("set.get_hash() is {}.", set.get_hash());
8}
Source

pub fn dump(&self)

Wraps isl_set_dump.

Examples found in repository?
examples/hash_isl_set.rs (line 6)
3fn main() {
4    let ctx = isl::Context::alloc();
5    let set = isl::Set::read_from_str(&ctx, "{[i, j]: 0<=i<1024 and 0<=j<512}");
6    set.dump();
7    println!("set.get_hash() is {}.", set.get_hash());
8}
Source

pub fn fix_si(self, type_: DimType, pos: u32, value: i32) -> Set

Wraps isl_set_fix_si.

Source

pub fn lower_bound_si(self, type_: DimType, pos: u32, value: i32) -> Set

Wraps isl_set_lower_bound_si.

Source

pub fn lower_bound_val(self, type_: DimType, pos: u32, value: Val) -> Set

Wraps isl_set_lower_bound_val.

Source

pub fn upper_bound_si(self, type_: DimType, pos: u32, value: i32) -> Set

Wraps isl_set_upper_bound_si.

Source

pub fn upper_bound_val(self, type_: DimType, pos: u32, value: Val) -> Set

Wraps isl_set_upper_bound_val.

Source

pub fn equate(self, type1: DimType, pos1: i32, type2: DimType, pos2: i32) -> Set

Wraps isl_set_equate.

Source

pub fn lexmin(self) -> Set

Wraps isl_set_lexmin.

Source

pub fn lexmax(self) -> Set

Wraps isl_set_lexmax.

Source

pub fn follows_at(&self, set2: &Set, pos: i32) -> i32

Wraps isl_set_follows_at.

Source

pub fn params(self) -> Set

Wraps isl_set_params.

Source

pub fn from_params(self) -> Set

Wraps isl_set_from_params.

Source

pub fn empty(space: Space) -> Set

Wraps isl_set_empty.

Source

pub fn universe(space: Space) -> Set

Wraps isl_set_universe.

Source

pub fn nat_universe(space: Space) -> Set

Wraps isl_set_nat_universe.

Source

pub fn copy(&self) -> Set

Wraps isl_set_copy.

Source

pub fn free(self) -> Set

Wraps isl_set_free.

Source

pub fn from_basic_set(bset: BasicSet) -> Set

Wraps isl_set_from_basic_set.

Source

pub fn sample(self) -> BasicSet

Wraps isl_set_sample.

Source

pub fn sample_point(self) -> Point

Wraps isl_set_sample_point.

Source

pub fn detect_equalities(self) -> Set

Wraps isl_set_detect_equalities.

Source

pub fn affine_hull(self) -> BasicSet

Wraps isl_set_affine_hull.

Source

pub fn convex_hull(self) -> BasicSet

Wraps isl_set_convex_hull.

Source

pub fn polyhedral_hull(self) -> BasicSet

Wraps isl_set_polyhedral_hull.

Source

pub fn simple_hull(self) -> BasicSet

Wraps isl_set_simple_hull.

Source

pub fn unshifted_simple_hull(self) -> BasicSet

Wraps isl_set_unshifted_simple_hull.

Source

pub fn plain_unshifted_simple_hull(self) -> BasicSet

Wraps isl_set_plain_unshifted_simple_hull.

Source

pub fn bounded_simple_hull(self) -> BasicSet

Wraps isl_set_bounded_simple_hull.

Source

pub fn wrapped_reverse(self) -> Set

Wraps isl_set_wrapped_reverse.

Source

pub fn union_disjoint(self, set2: Set) -> Set

Wraps isl_set_union_disjoint.

Source

pub fn union(self, set2: Set) -> Set

Wraps isl_set_union.

Source

pub fn product(self, set2: Set) -> Set

Wraps isl_set_product.

Source

pub fn flat_product(self, set2: Set) -> Set

Wraps isl_set_flat_product.

Source

pub fn intersect(self, set2: Set) -> Set

Wraps isl_set_intersect.

Source

pub fn intersect_params(self, params: Set) -> Set

Wraps isl_set_intersect_params.

Source

pub fn intersect_factor_domain(self, domain: Set) -> Set

Wraps isl_set_intersect_factor_domain.

Source

pub fn intersect_factor_range(self, range: Set) -> Set

Wraps isl_set_intersect_factor_range.

Source

pub fn subtract(self, set2: Set) -> Set

Wraps isl_set_subtract.

Source

pub fn complement(self) -> Set

Wraps isl_set_complement.

Source

pub fn apply(self, map: Map) -> Set

Wraps isl_set_apply.

Source

pub fn fix_val(self, type_: DimType, pos: u32, v: Val) -> Set

Wraps isl_set_fix_val.

Source

pub fn fix_dim_si(self, dim: u32, value: i32) -> Set

Wraps isl_set_fix_dim_si.

Source

pub fn insert_dims(self, type_: DimType, pos: u32, n: u32) -> Set

Wraps isl_set_insert_dims.

Source

pub fn add_dims(self, type_: DimType, n: u32) -> Set

Wraps isl_set_add_dims.

Source

pub fn move_dims( self, dst_type: DimType, dst_pos: u32, src_type: DimType, src_pos: u32, n: u32, ) -> Set

Wraps isl_set_move_dims.

Source

pub fn project_out_param_id(self, id: Id) -> Set

Wraps isl_set_project_out_param_id.

Source

pub fn project_out(self, type_: DimType, first: u32, n: u32) -> Set

Wraps isl_set_project_out.

Source

pub fn project_out_all_params(self) -> Set

Wraps isl_set_project_out_all_params.

Source

pub fn project_onto_map(self, type_: DimType, first: u32, n: u32) -> Map

Wraps isl_set_project_onto_map.

Source

pub fn eliminate(self, type_: DimType, first: u32, n: u32) -> Set

Wraps isl_set_eliminate.

Source

pub fn eliminate_dims(self, first: u32, n: u32) -> Set

Wraps isl_set_eliminate_dims.

Source

pub fn remove_dims(self, type_: DimType, first: u32, n: u32) -> Set

Wraps isl_set_remove_dims.

Source

pub fn remove_divs_involving_dims( self, type_: DimType, first: u32, n: u32, ) -> Set

Wraps isl_set_remove_divs_involving_dims.

Source

pub fn remove_unknown_divs(self) -> Set

Wraps isl_set_remove_unknown_divs.

Source

pub fn remove_divs(self) -> Set

Wraps isl_set_remove_divs.

Source

pub fn split_dims(self, type_: DimType, first: u32, n: u32) -> Set

Wraps isl_set_split_dims.

Source

pub fn drop_constraints_involving_dims( self, type_: DimType, first: u32, n: u32, ) -> Set

Wraps isl_set_drop_constraints_involving_dims.

Source

pub fn drop_constraints_not_involving_dims( self, type_: DimType, first: u32, n: u32, ) -> Set

Wraps isl_set_drop_constraints_not_involving_dims.

Source

pub fn involves_locals(&self) -> bool

Wraps isl_set_involves_locals.

Source

pub fn involves_dims(&self, type_: DimType, first: u32, n: u32) -> bool

Wraps isl_set_involves_dims.

Source

pub fn plain_is_empty(&self) -> bool

Wraps isl_set_plain_is_empty.

Source

pub fn plain_is_universe(&self) -> bool

Wraps isl_set_plain_is_universe.

Source

pub fn is_params(&self) -> bool

Wraps isl_set_is_params.

Source

pub fn is_empty(&self) -> bool

Wraps isl_set_is_empty.

Source

pub fn is_bounded(&self) -> bool

Wraps isl_set_is_bounded.

Source

pub fn is_subset(&self, set2: &Set) -> bool

Wraps isl_set_is_subset.

Source

pub fn is_strict_subset(&self, set2: &Set) -> bool

Wraps isl_set_is_strict_subset.

Source

pub fn is_equal(&self, set2: &Set) -> bool

Wraps isl_set_is_equal.

Source

pub fn is_disjoint(&self, set2: &Set) -> bool

Wraps isl_set_is_disjoint.

Source

pub fn is_singleton(&self) -> bool

Wraps isl_set_is_singleton.

Source

pub fn is_box(&self) -> bool

Wraps isl_set_is_box.

Source

pub fn has_equal_space(&self, set2: &Set) -> bool

Wraps isl_set_has_equal_space.

Source

pub fn sum(self, set2: Set) -> Set

Wraps isl_set_sum.

Source

pub fn neg(self) -> Set

Wraps isl_set_neg.

Source

pub fn make_disjoint(self) -> Set

Wraps isl_set_make_disjoint.

Source

pub fn compute_divs(self) -> Set

Wraps isl_set_compute_divs.

Source

pub fn align_divs(self) -> Set

Wraps isl_set_align_divs.

Source

pub fn plain_get_val_if_fixed(&self, type_: DimType, pos: u32) -> Val

Wraps isl_set_plain_get_val_if_fixed.

Source

pub fn dim_is_bounded(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_dim_is_bounded.

Source

pub fn dim_has_lower_bound(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_dim_has_lower_bound.

Source

pub fn dim_has_upper_bound(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_dim_has_upper_bound.

Source

pub fn dim_has_any_lower_bound(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_dim_has_any_lower_bound.

Source

pub fn dim_has_any_upper_bound(&self, type_: DimType, pos: u32) -> bool

Wraps isl_set_dim_has_any_upper_bound.

Source

pub fn gist_basic_set(self, context: BasicSet) -> Set

Wraps isl_set_gist_basic_set.

Source

pub fn gist(self, context: Set) -> Set

Wraps isl_set_gist.

Source

pub fn gist_params(self, context: Set) -> Set

Wraps isl_set_gist_params.

Source

pub fn get_stride_info(&self, pos: i32) -> StrideInfo

Wraps isl_set_get_stride_info.

Source

pub fn get_stride(&self, pos: i32) -> Val

Wraps isl_set_get_stride.

Source

pub fn get_lattice_tile(&self) -> FixedBox

Wraps isl_set_get_lattice_tile.

Source

pub fn get_simple_fixed_box_hull(&self) -> FixedBox

Wraps isl_set_get_simple_fixed_box_hull.

Source

pub fn coalesce(self) -> Set

Wraps isl_set_coalesce.

Source

pub fn plain_cmp(&self, set2: &Set) -> i32

Wraps isl_set_plain_cmp.

Source

pub fn plain_is_equal(&self, set2: &Set) -> bool

Wraps isl_set_plain_is_equal.

Source

pub fn plain_is_disjoint(&self, set2: &Set) -> bool

Wraps isl_set_plain_is_disjoint.

Source

pub fn get_hash(&self) -> u32

Wraps isl_set_get_hash.

Examples found in repository?
examples/hash_isl_set.rs (line 7)
3fn main() {
4    let ctx = isl::Context::alloc();
5    let set = isl::Set::read_from_str(&ctx, "{[i, j]: 0<=i<1024 and 0<=j<512}");
6    set.dump();
7    println!("set.get_hash() is {}.", set.get_hash());
8}
Source

pub fn n_basic_set(&self) -> i32

Wraps isl_set_n_basic_set.

Source

pub fn count_val(&self) -> Val

Wraps isl_set_count_val.

Source

pub fn from_point(pnt: Point) -> Set

Wraps isl_set_from_point.

Source

pub fn box_from_points(pnt1: Point, pnt2: Point) -> Set

Wraps isl_set_box_from_points.

Source

pub fn lift(self) -> Set

Wraps isl_set_lift.

Source

pub fn lex_le_set(self, set2: Set) -> Map

Wraps isl_set_lex_le_set.

Source

pub fn lex_lt_set(self, set2: Set) -> Map

Wraps isl_set_lex_lt_set.

Source

pub fn lex_ge_set(self, set2: Set) -> Map

Wraps isl_set_lex_ge_set.

Source

pub fn lex_gt_set(self, set2: Set) -> Map

Wraps isl_set_lex_gt_set.

Source

pub fn size(&self) -> i32

Wraps isl_set_size.

Source

pub fn align_params(self, model: Space) -> Set

Wraps isl_set_align_params.

Source

pub fn drop_unused_params(self) -> Set

Wraps isl_set_drop_unused_params.

Source

pub fn coefficients(self) -> BasicSet

Wraps isl_set_coefficients.

Source

pub fn solutions(self) -> BasicSet

Wraps isl_set_solutions.

Source

pub fn dim_max(self, pos: i32) -> PwAff

Wraps isl_set_dim_max.

Source

pub fn dim_min(self, pos: i32) -> PwAff

Wraps isl_set_dim_min.

Source

pub fn to_str(&self) -> &str

Wraps isl_set_to_str.

Source

pub fn do_not_free_on_drop(&mut self)

Does not call isl_xxx_free() on being dropped. (For internal use only.)

Trait Implementations§

Source§

impl Drop for Set

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl Freeze for Set

§

impl RefUnwindSafe for Set

§

impl Send for Set

§

impl Sync for Set

§

impl Unpin for Set

§

impl UnwindSafe for Set

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.