ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/ConstraintAlgorithm.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/ConstraintAlgorithm.hpp (file contents):
Revision 1232 by tim, Thu Jun 3 21:51:55 2004 UTC vs.
Revision 1248 by tim, Fri Jun 4 19:30:05 2004 UTC

# Line 14 | Line 14 | enum ConsAlgoStatus{consFail, consSuccess, consAlready
14   class DistanceConstraintPair;
15   class SimInfo;
16  
17 < enum ConsAlgoStatus{consFail, consSuccess, consAlready, consPairHandlerFail, consElemHandlerFail};
17 > enum ConsAlgoStatus{
18 >  consPairHandlerFail = -3,
19 >  consElemHandlerFail = -2,
20 >  consFail = -1,
21 >  consSuccess = 0,
22 >  consAlready = 1};
23  
24   ////////////////////////////////////////////////////////////////////////////////
25   //Declaration of ConstraintAlgorithm
# Line 33 | Line 38 | class ConstraintAlgorithm{
38      int doConstrainPair(ConstraintPair* consPair);
39      void registerCallback(const TypeInfo& ti, CallbackFunctor* functor);
40      void unRegister(TypeInfo& ti);
41 <    
41 >    bool haveError() { return error;}
42    protected:
43      ConstraintAlgorithm(SimInfo* rhs);
44  
# Line 42 | Line 47 | class ConstraintAlgorithm{
47      ConstraintElementIterator* ceIter;
48  
49      map<TypeInfo, CallbackFunctor*> callbackMap;
50 +
51 +    bool error;
52   };
53  
54   ////////////////////////////////////////////////////////////////////////////////

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines