Sierra Toolkit Version of the Day
Entity.cpp
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 #include <stddef.h>
00010 #include <stdexcept>
00011 #include <iostream>
00012 #include <sstream>
00013 #include <algorithm>
00014 
00015 #include <stk_mesh/base/Entity.hpp>
00016 #include <stk_mesh/base/BulkData.hpp>
00017 #include <stk_mesh/base/MetaData.hpp>
00018 
00019 namespace stk {
00020 namespace mesh {
00021 
00022 //----------------------------------------------------------------------
00023 
00024 Entity::Entity( const EntityKey & arg_key )
00025   : m_entityImpl( arg_key )
00026 {}
00027 
00028 
00029 Entity::~Entity()
00030 {}
00031 
00032 std::string print_entity_key(const Entity& entity)
00033 {
00034   return print_entity_key(MetaData::get(entity),
00035                           entity.key());
00036 }
00037 
00038 std::string print_entity_key(const Entity* entity)
00039 {
00040   if (entity == NULL) {
00041     return "NULL ENTITY";
00042   }
00043   else {
00044     return print_entity_key(*entity);
00045   }
00046 }
00047 
00048 //
00049 //----------------------------------------------------------------------
00050 
00051 } // namespace mesh
00052 } // namespace stk
00053 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends