Generated on Sat Feb 7 2015 02:01:48 for Gecode by doxygen 1.8.9.1
Gecode::Int::NoOverlap::ManBox< Dim, n > Class Template Reference

Mandatory box class. More...

#include <no-overlap.hh>

Public Member Functions

const Dim & operator[] (int i) const
 Access to dimension i. More...
 
Dim & operator[] (int i)
 Access to dimension i. More...
 
bool mandatory (void) const
 Whether box is mandatory. More...
 
bool optional (void) const
 Whether box is optional. More...
 
bool excluded (void) const
 Whether box is excluded. More...
 
ExecStatus exclude (Space &home)
 Exclude box. More...
 
bool nooverlap (const ManBox< Dim, n > &b) const
 Check whether this box does not any longer overlap with b. More...
 
bool overlap (const ManBox< Dim, n > &b) const
 Check whether this box overlaps with b. More...
 
ExecStatus nooverlap (Space &home, ManBox< Dim, n > &b)
 Propagate that this box does not overlap with b. More...
 
void update (Space &home, bool share, ManBox< Dim, n > &r)
 Update box during cloning. More...
 
void subscribe (Space &home, Propagator &p)
 Subscribe propagator p to box. More...
 
void cancel (Space &home, Propagator &p)
 Cancel propagator p from box. More...
 

Static Public Member Functions

static int dim (void)
 Return number of dimensions. More...
 

Protected Attributes

Dim d [n]
 Dimensions. More...
 

Detailed Description

template<class Dim, int n>
class Gecode::Int::NoOverlap::ManBox< Dim, n >

Mandatory box class.

Definition at line 146 of file no-overlap.hh.

Member Function Documentation

template<class Dim , int n>
const Dim & Gecode::Int::NoOverlap::ManBox< Dim, n >::operator[] ( int  i) const
inline

Access to dimension i.

Definition at line 46 of file box.hpp.

template<class Dim , int n>
Dim & Gecode::Int::NoOverlap::ManBox< Dim, n >::operator[] ( int  i)
inline

Access to dimension i.

Definition at line 52 of file box.hpp.

template<class Dim , int n>
int Gecode::Int::NoOverlap::ManBox< Dim, n >::dim ( void  )
inlinestatic

Return number of dimensions.

Definition at line 58 of file box.hpp.

template<class Dim , int n>
bool Gecode::Int::NoOverlap::ManBox< Dim, n >::mandatory ( void  ) const
inline

Whether box is mandatory.

Definition at line 64 of file box.hpp.

template<class Dim , int n>
bool Gecode::Int::NoOverlap::ManBox< Dim, n >::optional ( void  ) const
inline

Whether box is optional.

Definition at line 74 of file box.hpp.

template<class Dim , int n>
bool Gecode::Int::NoOverlap::ManBox< Dim, n >::excluded ( void  ) const
inline

Whether box is excluded.

Definition at line 69 of file box.hpp.

template<class Dim , int n>
ExecStatus Gecode::Int::NoOverlap::ManBox< Dim, n >::exclude ( Space home)
inline

Exclude box.

Definition at line 80 of file box.hpp.

template<class Dim , int n>
bool Gecode::Int::NoOverlap::ManBox< Dim, n >::nooverlap ( const ManBox< Dim, n > &  b) const
inline

Check whether this box does not any longer overlap with b.

Definition at line 86 of file box.hpp.

template<class Dim , int n>
bool Gecode::Int::NoOverlap::ManBox< Dim, n >::overlap ( const ManBox< Dim, n > &  b) const
inline

Check whether this box overlaps with b.

Definition at line 95 of file box.hpp.

template<class Dim , int n>
ExecStatus Gecode::Int::NoOverlap::ManBox< Dim, n >::nooverlap ( Space home,
ManBox< Dim, n > &  b 
)
inline

Propagate that this box does not overlap with b.

Definition at line 104 of file box.hpp.

template<class Dim , int n>
void Gecode::Int::NoOverlap::ManBox< Dim, n >::update ( Space home,
bool  share,
ManBox< Dim, n > &  r 
)
inline

Update box during cloning.

Definition at line 124 of file box.hpp.

template<class Dim , int n>
void Gecode::Int::NoOverlap::ManBox< Dim, n >::subscribe ( Space home,
Propagator p 
)
inline

Subscribe propagator p to box.

Definition at line 131 of file box.hpp.

template<class Dim , int n>
void Gecode::Int::NoOverlap::ManBox< Dim, n >::cancel ( Space home,
Propagator p 
)
inline

Cancel propagator p from box.

Definition at line 137 of file box.hpp.

Member Data Documentation

template<class Dim, int n>
Dim Gecode::Int::NoOverlap::ManBox< Dim, n >::d[n]
protected

Dimensions.

Definition at line 149 of file no-overlap.hh.


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