SimpleNumberer.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:21 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/graph/numberer/SimpleNumberer.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/graph/numberer/SimpleNumberer.h
00027 // 
00028 // Written: fmk 
00029 // Created: Sun Sept 15 11:47:47: 1996
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for SimpleNumberer.
00033 // SimpleNumberer is an object to perform a simple numbering of the vertices.
00034 // It does this by using the graphs VertexIter and assigning the numbers as
00035 // it comes across the vertices.
00036 //
00037 // What: "@(#) SimpleNumberer.h, revA"
00038 
00039 #ifndef SimpleNumberer_h
00040 #define SimpleNumberer_h
00041 
00042 #include <GraphNumberer.h>
00043 
00044 class SimpleNumberer: public GraphNumberer
00045 {
00046   public:
00047     SimpleNumberer(); 
00048     ~SimpleNumberer();
00049     
00050     const ID &number(Graph &theGraph, int lastVertex = -1);
00051     const ID &number(Graph &theGraph, const ID &startVertices);
00052     
00053     virtual int sendSelf(int commitTag, Channel &theChannel);
00054     virtual int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00055     
00056   protected:
00057     
00058   private:
00059     int numVertex;
00060     ID *theRefResult;
00061 };
00062 
00063 #endif
00064 

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