Revision: | 1010 |
Committed: | Tue Feb 3 20:43:08 2004 UTC (21 years, 2 months ago) by tim |
File size: | 423 byte(s) |
Log Message: | to avoid cyclic depency, refactory constraint class |
# | Content |
---|---|
1 | #include "Constraint.hpp" |
2 | |
3 | using namespace std; |
4 | |
5 | ConstraintBase::ConstraintBase(){ |
6 | init_ndim = false; |
7 | ndim = 0; |
8 | } |
9 | |
10 | ConstraintBase::ConstraintBase(int dim){ |
11 | ndim = dim; |
12 | init_ndim = true; |
13 | } |
14 | |
15 | void ConstraintBase::setDim(int dim){ |
16 | |
17 | if(isDimSet() && dim != ndim){ |
18 | cout << "ConstraintBase Warning : About to change ndim which is already set" << endl; |
19 | } |
20 | |
21 | ndim = dim; |
22 | init_ndim = true; |
23 | } |
Name | Value |
---|---|
svn:executable | * |