Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0

Range iterator for union of iterators. More...

#include <ranges-union.hpp>

Public Member Functions

template<class I, class J>
RangeListIter::RangeListtwo (I &i, J &j)
 RangeListIter (void)
 Default constructor.
 RangeListIter (const RangeListIter &i)
 Copy constructor.
 RangeListIter (Region &r)
 Initialize.
void init (Region &r)
 Initialize.
RangeListIteroperator= (const RangeListIter &i)
 Assignment operator.
bool operator() (void) const
 Test whether iterator is still at a range or done.
void operator++ (void)
 Move iterator to next range (if possible)
void reset (void)
 Reset iterator to start.
int min (void) const
 Return smallest value of range.
int max (void) const
 Return largest value of range.
unsigned int width (void) const
 Return width of range (distance between minimum and maximum)
 ~RangeListIter (void)
 Destructor.

Protected Member Functions

template<class I, class J>
RangeListtwo (I &i, J &j)
 Return range list for union of two iterators.
template<class I>
void insert (I &i, RangeList *&u)
 Insert ranges from i into u.
Protected Member Functions inherited from Gecode::Iter::Ranges::RangeListIter
void set (RangeList *l)
 Set range lists.
RangeListget (void) const
 Get head of current range list.
RangeListrange (int min, int max, RangeList *&f)
 Create new range possibly from freelist f and init.
RangeListrange (int min, int max)
 Create new range possibly and init.
template<class I>
RangeListrange (I &i, RangeList *&f)
 Create new range possibly from freelist f and init.
template<class I>
RangeListrange (I &i)
 Create new range possibly and init.
template<class I>
RangeListcopy (I &i)
 Copy the iterator i to a range list.

Protected Attributes

RangeListf
 Freelist used for allocation.
Protected Attributes inherited from Gecode::Iter::Ranges::RangeListIter
RLIOrlio
 Reference to shared object.
RangeListh
 Head of range list.
RangeListc
 Current list element.

Constructors and initialization

 NaryUnion (void)
 Default constructor.
template<class I>
 NaryUnion (Region &r, I &i)
 Initialize with single iterator i.
template<class I, class J>
 NaryUnion (Region &r, I &i, J &j)
 Initialize with iterators i and j.
template<class I>
 NaryUnion (Region &r, I *i, int n)
 Initialize with n iterators in i.
template<class I>
void init (Region &r, I &i)
 Initialize with single iterator i.
template<class I, class J>
void init (Region &r, I &i, J &j)
 Initialize with iterators i and j.
template<class I>
void init (Region &r, I *i, int n)
 Initialize with n iterators in i.
template<class I>
void operator|= (I &i)
 Add iterator i.
NaryUnionoperator= (const NaryUnion &m)
 Assignment operator (both iterators must be allocated from the same region)

Detailed Description

Range iterator for union of iterators.

Definition at line 74 of file ranges-union.hpp.

Constructor & Destructor Documentation

◆ NaryUnion() [1/4]

Gecode::Iter::Ranges::NaryUnion::NaryUnion ( void )
inline

Default constructor.

Definition at line 275 of file ranges-union.hpp.

◆ NaryUnion() [2/4]

template<class I>
Gecode::Iter::Ranges::NaryUnion::NaryUnion ( Region & r,
I & i )
inline

Initialize with single iterator i.

Definition at line 327 of file ranges-union.hpp.

◆ NaryUnion() [3/4]

template<class I, class J>
Gecode::Iter::Ranges::NaryUnion::NaryUnion ( Region & r,
I & i,
J & j )
inline

Initialize with iterators i and j.

Definition at line 332 of file ranges-union.hpp.

◆ NaryUnion() [4/4]

template<class I>
Gecode::Iter::Ranges::NaryUnion::NaryUnion ( Region & r,
I * i,
int n )
inline

Initialize with n iterators in i.

Definition at line 337 of file ranges-union.hpp.

Member Function Documentation

◆ two() [1/2]

template<class I, class J>
RangeList * Gecode::Iter::Ranges::NaryUnion::two ( I & i,
J & j )
protected

Return range list for union of two iterators.

◆ insert()

template<class I>
void Gecode::Iter::Ranges::NaryUnion::insert ( I & i,
RangeList *& u )
protected

Insert ranges from i into u.

Definition at line 223 of file ranges-union.hpp.

◆ init() [1/3]

template<class I>
void Gecode::Iter::Ranges::NaryUnion::init ( Region & r,
I & i )
inline

Initialize with single iterator i.

Definition at line 280 of file ranges-union.hpp.

◆ init() [2/3]

template<class I, class J>
void Gecode::Iter::Ranges::NaryUnion::init ( Region & r,
I & i,
J & j )
inline

Initialize with iterators i and j.

Definition at line 288 of file ranges-union.hpp.

◆ init() [3/3]

template<class I>
void Gecode::Iter::Ranges::NaryUnion::init ( Region & r,
I * i,
int n )
inline

Initialize with n iterators in i.

Definition at line 296 of file ranges-union.hpp.

◆ operator|=()

template<class I>
void Gecode::Iter::Ranges::NaryUnion::operator|= ( I & i)
inline

Add iterator i.

Definition at line 343 of file ranges-union.hpp.

◆ operator=()

NaryUnion & Gecode::Iter::Ranges::NaryUnion::operator= ( const NaryUnion & m)
inline

Assignment operator (both iterators must be allocated from the same region)

Definition at line 350 of file ranges-union.hpp.

◆ two() [2/2]

template<class I, class J>
RangeListIter::RangeList * Gecode::Iter::Ranges::NaryUnion::two ( I & i,
J & j )

Definition at line 180 of file ranges-union.hpp.

Member Data Documentation

◆ f

RangeList* Gecode::Iter::Ranges::NaryUnion::f
protected

Freelist used for allocation.

Definition at line 77 of file ranges-union.hpp.


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