MySpace Class Reference

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. 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. Builds a space which will contain nv variables (the variables themselves are however not declared).
QECODE_EXPORT MySpace (bool share, MySpace &ms)
virtual QECODE_EXPORT MySpacecopy (bool share)
virtual QECODE_EXPORT ~MySpace ()

Public Attributes

void ** v
VarTypetype_of_v

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.

Types of variables.

Definition at line 41 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

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 44 of file myspace.hh.

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

void** MySpace::v

This array contains all the variables this space contains.

Definition at line 49 of file myspace.hh.

Referenced by Implicative::bvar(), Implicative::cascade(), valueHeuristic::getBoolVar(), valueHeuristic::getIntVar(), MySpace(), Implicative::print(), Implicative::QBoolVar(), Implicative::QIntVar(), Implicative::subsumed(), Implicative::var(), and ~MySpace().

VarType* MySpace::type_of_v

This array indicates the type of each variable.

Definition at line 54 of file myspace.hh.

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


The documentation for this class was generated from the following files:
Generated on Thu Feb 7 14:34:27 2008 for qecode by  doxygen 1.5.2