Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TaggedObjectStorage.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.1.1.1 $
00022 // $Date: 2000/09/15 08:23:30 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/tagged/storage/TaggedObjectStorage.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef TaggedObjectStorage_h
00027 #define TaggedObjectStorage_h
00028 
00029 // File: ~/tagged/storage/TaggedObjectStorage.h
00030 // 
00031 // Written: fmk 
00032 // Created: 11/96
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for 
00036 // TaggedObjectStorage. A TaggedObjectStorage object a container object
00037 // used to hold objects of type TaggedObject; each object of which has
00038 // some UNIQUE identifier. 
00039 //
00040 // What: "@(#) TaggedObjectStorage.h, revA"
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 
Copyright Contact Us