Generated on Sat Feb 7 2015 02:01:52 for Gecode by doxygen 1.8.9.1
Gecode::Set::Limits Namespace Reference

Numerical limits for set variables. More...

Functions

void check (int n, const char *l)
 Check whether integer n is in range, otherwise throw overflow exception with information l. More...
 
void check (unsigned int n, const char *l)
 Check whether unsigned int n is in range for cardinality, otherwise throw overflow exception with information l. More...
 
void check (const IntSet &s, const char *l)
 Check whether minimum and maximum of IntSet s is in range, otherwise throw overflow exception with information l. More...
 

Variables

const int max = (Gecode::Int::Limits::max / 2) - 1
 Largest allowed integer in integer set. More...
 
const int min = -max
 Smallest allowed integer in integer set. More...
 
const unsigned int card = max-min+1
 Maximum cardinality of an integer set. More...
 

Detailed Description

Numerical limits for set variables.

Function Documentation

void Gecode::Set::Limits::check ( int  n,
const char *  l 
)
inline

Check whether integer n is in range, otherwise throw overflow exception with information l.

Definition at line 41 of file limits.hpp.

void Gecode::Set::Limits::check ( unsigned int  n,
const char *  l 
)
inline

Check whether unsigned int n is in range for cardinality, otherwise throw overflow exception with information l.

Definition at line 47 of file limits.hpp.

void Gecode::Set::Limits::check ( const IntSet s,
const char *  l 
)
inline

Check whether minimum and maximum of IntSet s is in range, otherwise throw overflow exception with information l.

Definition at line 53 of file limits.hpp.

Variable Documentation

const int Gecode::Set::Limits::max = (Gecode::Int::Limits::max / 2) - 1

Largest allowed integer in integer set.

Definition at line 99 of file set.hh.

const int Gecode::Set::Limits::min = -max

Smallest allowed integer in integer set.

Definition at line 101 of file set.hh.

const unsigned int Gecode::Set::Limits::card = max-min+1

Maximum cardinality of an integer set.

Definition at line 103 of file set.hh.