Revision: | 1010 |
Committed: | Tue Feb 3 20:43:08 2004 UTC (21 years, 3 months ago) by tim |
File size: | 423 byte(s) |
Log Message: | to avoid cyclic depency, refactory constraint class |
# | User | Rev | Content |
---|---|---|---|
1 | tim | 987 | #include "Constraint.hpp" |
2 | |||
3 | tim | 1010 | using namespace std; |
4 | |||
5 | tim | 987 | 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 | tim | 1010 | init_ndim = true; |
23 | tim | 987 | } |
Name | Value |
---|---|
svn:executable | * |