Patch.hGo 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.2 $ 00022 // $Date: 2003/02/14 23:01:36 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/patch/Patch.h,v $ 00024 00025 00026 // File: Patch.h 00027 // Written by Remo M. de Souza 00028 // December 1998 00029 00030 00031 #ifndef Patch_h 00032 #define Patch_h 00033 00034 00035 #include <OPS_Globals.h> 00036 00037 class Cell; 00038 00039 class Patch 00040 { 00041 public: 00042 00043 Patch(); 00044 virtual ~Patch(); 00045 00046 // edition functions 00047 00048 virtual void setMaterialID (int materialID) = 0; 00049 00050 // inquiring functions 00051 00052 virtual int getMaterialID (void) const = 0; 00053 virtual int getNumCells (void) const = 0; 00054 virtual Cell **getCells (void) const = 0; 00055 virtual Patch *getCopy (void) const = 0; 00056 00057 virtual void Print(OPS_Stream &s, int flag =0) const =0; 00058 friend OPS_Stream &operator<<(OPS_Stream &s, const Patch &patch); 00059 00060 protected: 00061 00062 private: 00063 }; 00064 00065 00066 #endif 00067 |