|
Sierra Toolkit Version of the Day
|
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 00010 #ifndef stk_mesh_GetEntities_hpp 00011 #define stk_mesh_GetEntities_hpp 00012 00013 //---------------------------------------------------------------------- 00014 00015 #include <stk_mesh/base/Entity.hpp> 00016 #include <stk_mesh/base/Selector.hpp> 00017 #include <stk_mesh/base/BulkData.hpp> 00018 #include <stk_mesh/base/Bucket.hpp> 00019 00020 //---------------------------------------------------------------------- 00021 00022 namespace stk { 00023 namespace mesh { 00024 00029 //---------------------------------------------------------------------- 00030 00037 void count_entities( 00038 const Selector & selector , 00039 const BulkData & mesh , 00040 std::vector<EntityRank> & count ); 00041 00043 void get_entities( const BulkData & , EntityRank type, 00044 std::vector< Entity*> & ); 00045 00049 unsigned count_selected_entities( 00050 const Selector & selector , 00051 const std::vector< Bucket * > & input_buckets ); 00052 00056 void get_selected_entities( 00057 const Selector & selector , 00058 const std::vector< Bucket * > & input_buckets , 00059 std::vector< Entity * > & entities ); 00060 00063 } // namespace mesh 00064 } // namespace stk 00065 00066 //---------------------------------------------------------------------- 00067 //---------------------------------------------------------------------- 00068 00069 #endif // stk_mesh_GetEntities_hpp