| Revision: | 1011 |
| Committed: | Tue Feb 3 20:47:10 2004 UTC (21 years, 9 months ago) by tim |
| File size: | 395 byte(s) |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | tim | 1011 | #include "ConstraintList.hpp" |
| 2 | |||
| 3 | ConstraintList::ConstraintList(){ | ||
| 4 | consType = 0; | ||
| 5 | } | ||
| 6 | |||
| 7 | ConstraintList::~ConstraintList(){ | ||
| 8 | |||
| 9 | for(int i = 0; i < constraints.size(); i++) | ||
| 10 | if(!constraints[i]) | ||
| 11 | delete constraints[i]; | ||
| 12 | |||
| 13 | constraints.clear(); | ||
| 14 | |||
| 15 | } | ||
| 16 | void ConstraintList::addConstraint(ConstraintBase* cons){ | ||
| 17 | constraints.push_back(cons); | ||
| 18 | consType |= cons->getConsType(); | ||
| 19 | } | ||
| 20 |
| Name | Value |
|---|---|
| svn:executable | * |