ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/TupleMatcher.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/TupleMatcher.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 52 | Line 52 | namespace oopse {
52   #include <map>
53   namespace oopse {
54  
55 <    template<class TupleType, class ReturnType>
56 <    class TupleMatcher {
57 <        static ReturnType match(const std::map<TupleType, ReturnType>& container, const TupleType& t) {
58 <            typename std::map<TupleType, ReturnType>::iterator i;
55 >  template<class TupleType, class ReturnType>
56 >  class TupleMatcher {
57 >    static ReturnType match(const std::map<TupleType, ReturnType>& container, const TupleType& t) {
58 >      typename std::map<TupleType, ReturnType>::iterator i;
59  
60 <            i = container.find(t);
61 <            if (i != container.end()) {
62 <                return i->second;
63 <            } else {
64 <                return NULL;
65 <            }
66 <        }
67 <    };
60 >      i = container.find(t);
61 >      if (i != container.end()) {
62 >        return i->second;
63 >      } else {
64 >        return NULL;
65 >      }
66 >    }
67 >  };
68      
69   }
70   #endif //UTILS_TUPLEMATCHER_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines