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

Comparing trunk/OOPSE-2.0/src/selection/SelectionManager.hpp (file contents):
Revision 1967 by tim, Thu Feb 3 23:14:05 2005 UTC vs.
Revision 1972 by tim, Fri Feb 4 22:39:26 2005 UTC

# Line 43 | Line 43
43   #define SELECTION_SELECTIONMANAGER_HPP
44  
45   #include "utils/BitSet.hpp"
46 <
46 > #include "primitives/StuntDouble.hpp"
47   namespace oopse {
48  
49   /**
# Line 52 | Line 52 | class SelectionManager {
52   */
53   class SelectionManager {
54      public:
55 <        SelectionManager(int size) {bsSelection_.resize(size); clearSelection;}
55 >        SelectionManager(int size) {bsSelection_.resize(size);}
56  
57          void addSelection(StuntDouble* sd) {
58              bsSelection_.setBitOn(sd->getGlobalIndex());
# Line 100 | Line 100 | class SelectionManager {
100          }
101  
102          int getSelectionCount() {
103 <            bsSelection_.countBits();
103 >            return bsSelection_.countBits();
104          }
105  
106          BitSet getSelectionSet() {
# Line 110 | Line 110 | class SelectionManager {
110      private:
111          
112          BitSet bsSelection_;
113        SimInfo* info_;
113   };
114  
115   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines