Sierra Toolkit Version of the Day
diag/EntityKey.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_diag_EntityKey_hpp
00010 #define stk_mesh_diag_EntityKey_hpp
00011 
00012 #include <stk_util/diag/Writer.hpp>
00013 #include <stk_mesh/base/EntityKey.hpp>
00014 
00015 
00016 namespace stk {
00017 namespace mesh {
00018 
00019 inline
00020 stk::diag::Writer &operator<<(stk::diag::Writer &dout, const EntityKey &entity_key)  {
00021   return dout << entity_rank(entity_key) << ":" << entity_id(entity_key);
00022 }
00023 
00024 } // namespace stk
00025 } // namespace mesh
00026 
00027 #endif // stk_mesh_diag_EntityKey_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends