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.3 $
00022 // $Date: 2005/11/23 22:37:53 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/tagged/storage/TaggedObjectStorage.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef TaggedObjectStorage_h
00027 #define TaggedObjectStorage_h
00028 
00029 // Written: fmk 
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for 
00033 // TaggedObjectStorage. A TaggedObjectStorage object a container object
00034 // used to hold objects of type TaggedObject; each object of which has
00035 // some UNIQUE identifier. 
00036 //
00037 // What: "@(#) TaggedObjectStorage.h, revA"
00038 
00039 class TaggedObject;
00040 class TaggedObjectIter;
00041 
00042 #include <OPS_Globals.h>
00043 #include <bool.h>
00044 
00045 class TaggedObjectStorage 
00046 {
00047   public:
00048     TaggedObjectStorage() {};
00049     virtual  ~TaggedObjectStorage() {};    
00050 
00051     // public methods to populate the container
00052     virtual  int   setSize(int newSize) =0;
00053     virtual  bool  addComponent(TaggedObject *newComponent) =0;
00054 //                              bool allowMultipleTags = false) =0;
00055     virtual  TaggedObject  *removeComponent(int tag) =0;    
00056     virtual  int   getNumComponents(void) const =0;
00057     
00058     virtual  TaggedObject *getComponentPtr(int tag) =0;
00059     virtual  TaggedObjectIter  &getComponents(void) =0;
00060 
00061     virtual  TaggedObjectStorage *getEmptyCopy(void) =0;
00062     virtual  void clearAll(bool invokeDestructors = true) =0;
00063     
00064     virtual  void Print(OPS_Stream &s, int flag =0) =0;
00065     
00066   protected:    
00067     
00068   private:
00069 };
00070 
00071 #endif
00072 
00073 

Generated on Mon Oct 23 15:05:29 2006 for OpenSees by doxygen 1.5.0