00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef TaggedObjectStorage_h
00027 #define TaggedObjectStorage_h
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include <TaggedObject.h>
00043 #include <TaggedObjectIter.h>
00044
00045 #include <iostream.h>
00046 #include <bool.h>
00047
00061 class TaggedObjectStorage
00062 {
00063 public:
00067 TaggedObjectStorage() {};
00068
00075 virtual ~TaggedObjectStorage() {};
00076
00077
00079 virtual int setSize(int newSize) =0;
00086 virtual bool addComponent(TaggedObject *newComponent) =0;
00087
00089 virtual TaggedObject *removeComponent(int tag) =0;
00093 virtual int getNumComponents(void) const =0;
00094
00095
00101 virtual TaggedObject *getComponentPtr(int tag) =0;
00102
00107 virtual TaggedObjectIter &getComponents(void) =0;
00108
00109
00113 virtual TaggedObjectStorage *getEmptyCopy(void) =0;
00114
00119 virtual void clearAll(bool invokeDestructors = true) =0;
00120
00121
00132 virtual void Print(ostream &s, int flag =0) =0;
00133
00134
00135 protected:
00136
00137 private:
00138 };
00139
00140 #endif
00141
00142