MySpace Class Reference

A simple extension of Gecode::Space class. More...

#include <myspace.hh>

List of all members.

Public Member Functions

QECODE_EXPORT MySpace (unsigned int nv)
 Constructor of a space with a fixed number of variables.
QECODE_EXPORT int nbVars ()
QECODE_EXPORT MySpace (bool share, MySpace &ms)
virtual QECODE_EXPORT MySpacecopy (bool share)
virtual QECODE_EXPORT ~MySpace ()

Public Attributes

void ** v
 This array contains all the variables this space contains.
VarTypetype_of_v
 This array indicates the type of each variable.

Protected Attributes

unsigned int n


Detailed Description

A simple extension of Gecode::Space class.

A simple extension of the Space class from Gecode, in order to have access to the variables it contains.

Definition at line 39 of file myspace.hh.


Constructor & Destructor Documentation

MySpace::MySpace ( unsigned int  nv  ) 

Constructor of a space with a fixed number of variables.

Builds a space which will contain nv variables (the variables themselves are however not declared).

Parameters:
nv the number of variable the space must contain.

Definition at line 29 of file myspace.cc.

References n, type_of_v, and v.

Referenced by copy().

MySpace::MySpace ( bool  share,
MySpace ms 
)

Definition at line 44 of file myspace.cc.

References n, type_of_v, v, VTYPE_BOOL, and VTYPE_INT.

MySpace::~MySpace (  )  [virtual]

Definition at line 36 of file myspace.cc.

References n, type_of_v, and v.


Member Function Documentation

QECODE_EXPORT int MySpace::nbVars (  )  [inline]

Definition at line 60 of file myspace.hh.

Referenced by QSolver::rSolve().

MySpace * MySpace::copy ( bool  share  )  [virtual]

Definition at line 67 of file myspace.cc.

References MySpace().


Member Data Documentation

unsigned int MySpace::n [protected]

Definition at line 42 of file myspace.hh.

Referenced by MySpace(), and ~MySpace().

void** MySpace::v

This array contains all the variables this space contains.

Definition at line 47 of file myspace.hh.

Referenced by Implicative::bvar(), MySpace(), Implicative::QBoolVar(), Implicative::QIntVar(), QSolver::rSolve(), Implicative::var(), and ~MySpace().

VarType* MySpace::type_of_v

This array indicates the type of each variable.

Definition at line 52 of file myspace.hh.

Referenced by MySpace(), Implicative::QBoolVar(), Implicative::QIntVar(), QSolver::rSolve(), and ~MySpace().


The documentation for this class was generated from the following files:
Generated on Tue Jun 10 18:32:00 2008 for qecode by  doxygen 1.5.2