Sierra Toolkit Version of the Day
EntityRanks.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_EntityRanksEnums_hpp
00010 #define stk_mesh_fem_EntityRanksEnums_hpp
00011 
00012 #include <string>
00013 #include <vector>
00014 
00015 namespace stk {
00016 namespace mesh {
00017 
00018 //----------------------------------------------------------------------
00029 // DEPRECATED: 09/15/10 FEM TopologicalMetaData refactor
00030 enum EntityRankEnum {
00031   Node                = 0 ,
00032   Edge                = 1 ,
00033   Face                = 2 ,
00034   Element             = 3 ,
00035   Particle            = 4 ,
00036   Constraint          = 5 ,
00037   EntityRankEnd       = 6 ,
00038   EntityRankUndefined = -1
00039 };
00040 
00042 // DEPRECATED: 09/15/10 FEM TopologicalMetaData refactor
00043 const std::vector<std::string> & fem_entity_rank_names();
00044 
00045 // DEPRECATED: 09/15/10 FEM TopologicalMetaData refactor
00046 inline
00047 EntityRankEnum fem_entity_rank( int t )
00048 { return 0 <= t && t < EntityRankEnd ? EntityRankEnum(t) : EntityRankUndefined ; }
00049 
00052 }//namespace mesh
00053 }//namespace stk
00054 
00055 #endif
00056 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends