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

Comparing trunk/OOPSE-4/src/utils/MemoryUtils.hpp (file contents):
Revision 2203 by tim, Mon Mar 7 22:39:33 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 51 | Line 51 | namespace oopse {
51  
52  
53   namespace oopse {
54 <    class MemoryUtils{
55 <        public:
54 >  class MemoryUtils{
55 >  public:
56  
57 <            template<typename ContainterType>
58 <            static void deletePointers(ContainterType& container) {
59 <                for (typename ContainterType::iterator i = container.begin(); i != container.end(); i++) {
60 <                    delete *i;
61 <                }
57 >    template<typename ContainterType>
58 >    static void deletePointers(ContainterType& container) {
59 >      for (typename ContainterType::iterator i = container.begin(); i != container.end(); i++) {
60 >        delete *i;
61 >      }
62                  
63 <                container.clear();
64 <            }
65 <    };
63 >      container.clear();
64 >    }
65 >  };
66   }
67   #endif //UTILS_MEMORYUTILS_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines