00001 #ifndef __OBJCELL_H 00002 #define __OBJCELL_H 00003 00004 /* ObjectCell 00005 * 00006 * +--------------+-------------+ 00007 * | | | 00008 * | obj | next ----------> ObjectCell 00009 * | | | | 00010 * +------|-------+-------------+ 00011 * V 00012 * Object 00013 */ 00014 00015 class Object; 00016 00017 class ObjectCell 00018 { 00019 private: 00020 Object* obj; 00021 ObjectCell* next; 00022 00023 public: 00024 ObjectCell( Object*, ObjectCell* ); 00025 ~ObjectCell(); // deletes whole list..! 00026 int Len(); 00027 ObjectCell* Add( Object * ); 00028 bool Includes( Object * ); 00029 void Print(); 00030 Object* GetObject(); 00031 ObjectCell* GetNext(); 00032 void SetNext(ObjectCell *n); 00033 }; 00034 00035 #endif /* __OBJCELL_H */