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

Comparing trunk/OOPSE/libmdtools/Exclude.hpp (file contents):
Revision 435 by mmeineke, Fri Mar 28 19:33:37 2003 UTC vs.
Revision 1097 by gezelter, Mon Apr 12 20:32:20 2004 UTC

# Line 1 | Line 1
1   #ifndef __EXCLUDE_H__
2   #define __EXCLUDE_H__
3  
4 + #include <set>
5 + #include <utility>
6 +
7 + using namespace std;
8 +
9   class Exclude{
10    
11 < public:
7 <  Exclude(int theIndex);
8 <  ~Exclude(){}
11 > public:
12  
13 <  static int* exPairs;  // The Excludes array
14 <  static int nExcludes;
15 <
16 <  static void createArray( int nExludes );
17 <  static void destroyArray( void );
18 <  static int* getArray( void ){ return exPairs; }
13 >  ~Exclude();
14 >  
15 >  void addPair(int i, int j);
16 >  int  hasPair(int i, int j);
17 >  void printMe( void );
18 >  int  getSize( void );  
19 >  int* getFortranArray( void );
20 >  static Exclude* Instance();
21  
22 <  static void addExcludePairs(int nAdded, int* AexPair);
18 <  static void deleteExcludePair(int theIndex);
19 <  static void deleteRange(int startIndex, int stopIndex);
22 > protected:
23  
24 <  void setPair( int i, int j);
25 <  void printMe( void );
24 >  set<pair<int, int> > excludeSet;
25 >  int* exPairs;
26 >  bool newFortranArrayNeeded;
27 >  Exclude();
28  
29 < protected:
30 <  
26 <  int index;
27 <  int exI;
28 <  int exJ;
29 < };  
30 <  
29 > private:
30 >  static Exclude* _instance;  
31  
32 <  
32 > };    
33  
34   #endif // __EXCLUDE_H__

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines