ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/ConstraintList.cpp
Revision: 1011
Committed: Tue Feb 3 20:47:10 2004 UTC (20 years, 5 months ago) by tim
File size: 395 byte(s)
Log Message:
*** empty log message ***

File Contents

# Content
1 #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

Properties

Name Value
svn:executable *