EntityTypes.hpp

00001 /*------------------------------------------------------------------------*/
00002 /*                 Copyright 2010 Sandia Corporation.                     */
00003 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00004 /*  license for use of this work by or on behalf of the U.S. Government.  */
00005 /*  Export of this program may require a license from the                 */
00006 /*  United States Government.                                             */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #ifndef stk_mesh_fem_EntityTypesEnums_hpp
00010 #define stk_mesh_fem_EntityTypesEnums_hpp
00011 
00012 #include <string>
00013 #include <vector>
00014 
00015 namespace stk {
00016 namespace mesh {
00017 
00018 //----------------------------------------------------------------------
00029 enum EntityTypeEnum {
00030   Node                = 0 ,
00031   Edge                = 1 ,
00032   Face                = 2 ,
00033   Element             = 3 ,
00034   Particle            = 4 ,
00035   Constraint          = 5 ,
00036   EntityTypeEnd       = 6 ,
00037   EntityTypeUndefined = -1
00038 };
00039 
00041 const std::vector<std::string> & fem_entity_type_names();
00042 
00043 inline
00044 EntityTypeEnum fem_entity_type( int t )
00045 { return 0 <= t && t < EntityTypeEnd ? EntityTypeEnum(t) : EntityTypeUndefined ; }
00046 
00049 }//namespace mesh
00050 }//namespace stk
00051 
00052 #endif
00053 

Generated on Tue Jul 13 09:27:32 2010 for Sierra Toolkit by  doxygen 1.4.7