Generated on for Gecode by doxygen 1.17.0
Gecode::Int::GrowableIntSet Class Reference

A Space-owned set of integer values with growable canonical range storage. More...

#include <gecode/int/growable-int-set.hh>

Public Member Functions

 GrowableIntSet (void)
 Initialize an empty set.
bool in (int value) const
 Test membership.
template<class I>
void add_r (Space &home, I added)
 Add the ranges from a copyable, independent canonical iterator.
void update (Space &home, const GrowableIntSet &source)
 Copy exactly the live ranges into independent storage in home.
void dispose (Space &home)
 Return allocated storage to home.

Detailed Description

A Space-owned set of integer values with growable canonical range storage.

Definition at line 45 of file growable-int-set.hh.

Constructor & Destructor Documentation

◆ GrowableIntSet()

Gecode::Int::GrowableIntSet::GrowableIntSet ( void )
inline

Initialize an empty set.

Definition at line 37 of file growable-int-set.hpp.

Member Function Documentation

◆ in()

bool Gecode::Int::GrowableIntSet::in ( int value) const
inline

Test membership.

Definition at line 83 of file growable-int-set.hpp.

◆ add_r()

template<class I>
void Gecode::Int::GrowableIntSet::add_r ( Space & home,
I added )
inline

Add the ranges from a copyable, independent canonical iterator.

Endpoints must be within Int::Limits. Mutation invalidates borrowed range iterators. The input must not refer to this set's storage.

Definition at line 117 of file growable-int-set.hpp.

◆ update()

void Gecode::Int::GrowableIntSet::update ( Space & home,
const GrowableIntSet & source )
inline

Copy exactly the live ranges into independent storage in home.

Definition at line 161 of file growable-int-set.hpp.

◆ dispose()

void Gecode::Int::GrowableIntSet::dispose ( Space & home)
inline

Return allocated storage to home.

Definition at line 174 of file growable-int-set.hpp.


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