fei_DirichletBCRecord.hpp

00001 #ifndef _fei_DirichletBCRecord_hpp_
00002 #define _fei_DirichletBCRecord_hpp_
00003 
00004 /*--------------------------------------------------------------------*/
00005 /*    Copyright 2005 Sandia Corporation.                              */
00006 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00007 /*    non-exclusive license for use of this work by or on behalf      */
00008 /*    of the U.S. Government.  Export of this program may require     */
00009 /*    a license from the United States Government.                    */
00010 /*--------------------------------------------------------------------*/
00011 
00012 #include <fei_macros.hpp>
00013 
00014 namespace fei {
00015 
00016 struct DirichletBCRecord {
00017   int IDType;
00018   int ID;
00019   int fieldID;
00020   int whichComponent;
00021   double prescribedValue;
00022 
00023   bool operator!=(const DirichletBCRecord& rhs) const
00024   {
00025     return IDType != rhs.IDType || ID != rhs.ID || 
00026            fieldID != rhs.fieldID || whichComponent != rhs.whichComponent;
00027   }
00028 };
00029 
00030 class less_DirichletBCRecord {
00031  public:
00032   less_DirichletBCRecord(){}
00033   ~less_DirichletBCRecord(){}
00034 
00035   bool operator()(const DirichletBCRecord& lhs,
00036                   const DirichletBCRecord& rhs)
00037   {
00038     if (lhs.IDType < rhs.IDType) return true;
00039     if (lhs.IDType > rhs.IDType) return false;
00040 
00041     if (lhs.ID < rhs.ID) return true;
00042     if (lhs.ID > rhs.ID) return false;
00043 
00044     if (lhs.fieldID < rhs.fieldID) return true;
00045     if (lhs.fieldID > rhs.fieldID) return false;
00046 
00047     if (lhs.whichComponent < rhs.whichComponent) return true;
00048     if (lhs.whichComponent > rhs.whichComponent) return false;
00049 
00050     return false;
00051   }
00052 };
00053 
00054 }//namespace fei
00055 
00056 #endif
00057 

Generated on Wed May 12 21:30:41 2010 for FEI by  doxygen 1.4.7