Generated on Mon Aug 25 11:35:53 2008 for Gecode by doxygen 1.5.6

Gecode::Set::RangeList Class Reference

Inherits Gecode::FreeList.

List of all members.


Detailed Description

Lists of ranges (intervals).

Definition at line 94 of file var-imp.icc.


Constructors

 RangeList (void)
 Default constructor (noop).
 RangeList (int min, int max, RangeList *n)
 Initialize with minimum min and maximum max and successor n.

Access

int min (void) const
 Return minimum.
int max (void) const
 Return maximum.
unsigned int width (void) const
 Return width (distance between maximum and minimum).
RangeListnext (void) const
 Return next element.

Update

void min (int n)
 Set minimum to n.
void max (int n)
 Set maximum to n.
void next (RangeList *n)
 Set next rane to n.

Memory management

void dispose (Space *home, RangeList *l)
 Free memory for all elements between this and l (inclusive).
static void * operator new (size_t s, Space *home)
 Allocate memory from space.
static void operator delete (void *)
 No-op (for exceptions).
static void operator delete (void *, Space *home)
 No-op (use dispose instead).

Protected Attributes

int _min
 Minimum of range.
int _max
 Maximum of range.

Constructor & Destructor Documentation

Gecode::Set::RangeList::RangeList ( void   )  [inline]

Default constructor (noop).

Definition at line 50 of file integerset.icc.

Gecode::Set::RangeList::RangeList ( int  min,
int  max,
RangeList n 
) [inline]

Initialize with minimum min and maximum max and successor n.

Definition at line 53 of file integerset.icc.


Member Function Documentation

int Gecode::Set::RangeList::min ( void   )  const [inline]

Return minimum.

Definition at line 75 of file integerset.icc.

int Gecode::Set::RangeList::max ( void   )  const [inline]

Return maximum.

Definition at line 79 of file integerset.icc.

unsigned int Gecode::Set::RangeList::width ( void   )  const [inline]

Return width (distance between maximum and minimum).

Definition at line 83 of file integerset.icc.

RangeList * Gecode::Set::RangeList::next ( void   )  const [inline]

Return next element.

Reimplemented from Gecode::FreeList.

Definition at line 57 of file integerset.icc.

void Gecode::Set::RangeList::min ( int  n  )  [inline]

Set minimum to n.

Definition at line 62 of file integerset.icc.

void Gecode::Set::RangeList::max ( int  n  )  [inline]

Set maximum to n.

Definition at line 66 of file integerset.icc.

void Gecode::Set::RangeList::next ( RangeList n  )  [inline]

Set next rane to n.

Definition at line 70 of file integerset.icc.

void Gecode::Set::RangeList::dispose ( Space home,
RangeList l 
) [inline]

Free memory for all elements between this and l (inclusive).

Definition at line 102 of file integerset.icc.

void * Gecode::Set::RangeList::operator new ( size_t  s,
Space home 
) [inline, static]

Allocate memory from space.

Definition at line 97 of file integerset.icc.

void Gecode::Set::RangeList::operator delete ( void *   )  [inline, static]

No-op (for exceptions).

Definition at line 89 of file integerset.icc.

void Gecode::Set::RangeList::operator delete ( void *  ,
Space home 
) [inline, static]

No-op (use dispose instead).

Definition at line 92 of file integerset.icc.


Member Data Documentation

Minimum of range.

Definition at line 97 of file var-imp.icc.

Maximum of range.

Definition at line 99 of file var-imp.icc.


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