@ObjPtrs.h 883 B

1234567891011121314151617181920212223
  1. /******************************************************************************/
  2. // hide and set keyboard focus to the Edit view
  3. /******************************************************************************/
  4. template<typename TYPE> class ObjPtrs // warning: this must be stored only in global space
  5. {
  6. bool deleted;
  7. Memc<TYPE*> *objs; //=null; do not set this to null because this may have been already used before the constructor was called
  8. ~ObjPtrs();
  9. static int ComparePtr(TYPE*C &a, TYPE*C &b);
  10. void include(TYPE &obj);
  11. void exclude(TYPE &obj);
  12. TYPE& operator[](int i);
  13. public:
  14. ObjPtrs();
  15. };
  16. /******************************************************************************/
  17. /******************************************************************************/
  18. /******************************************************************************/