Actual source code: taois.h

      1: #ifndef TAOINDEXSET_H
      2: #define TAOINDEXSET_H

      4: #include "tao_basictypes.h"

      6: /**
      7:     An abstract class representing the implementation of a TAO Index Set.
      8: */

     10: class TaoVec;

     12: class TaoIndexSet {

     14: protected:
     15:
     16: public:

     18:   virtual ~TaoIndexSet(void){};

     20:   void* ISObject;

     22:   virtual int UnionOf(TaoIndexSet *, TaoIndexSet*);
     23:   virtual int IntersectionOf(TaoIndexSet*, TaoIndexSet*);
     24:   virtual int ComplementOf(TaoIndexSet*);

     26:   virtual int Duplicate(TaoIndexSet**);

     28:   virtual int IsSame(TaoIndexSet*, TaoTruth*);

     30:   /** Get the dimension of the vector spaces */
     31:   virtual int WhichEqual(TaoVec*,TaoVec*);

     33:   virtual int WhichLessThan(TaoVec*,TaoVec*);

     35:   virtual int WhichGreaterThan(TaoVec*,TaoVec*);

     37:   virtual int WhichBetween(TaoVec*,TaoVec*,TaoVec*);

     39:   virtual int WhichBetweenOrEqual(TaoVec *,TaoVec *,TaoVec *);

     41:   virtual int GetSize(int *);

     43:   virtual int View();

     45: };

     47: #endif