|
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 #include <stk_mesh/base/Iterators.hpp> 00020 00021 //---------------------------------------------------------------------- 00022 00023 namespace stk_classic { 00024 namespace mesh { 00025 00030 //---------------------------------------------------------------------- 00031 00038 void count_entities( const Selector & selector , 00039 const BulkData & mesh , 00040 std::vector<EntityRank> & count ); 00041 00043 void get_entities( const BulkData & mesh , EntityRank entity_rank, 00044 std::vector< Entity*> & entities); 00045 00046 // Note: Order will be different than above method because above method sorts 00047 // TODO: remove underscore once API and STK_Mesh are in different namespaces 00048 BucketVectorEntityIteratorRange get_entities( EntityRank entity_rank, const BulkData& mesh ); 00049 00053 unsigned count_selected_entities( const Selector & selector , 00054 const std::vector< Bucket * > & input_buckets ); 00055 00059 void get_selected_entities( const Selector & selector , 00060 const std::vector< Bucket * > & input_buckets , 00061 std::vector< Entity * > & entities ); 00062 00063 SelectedBucketRangeEntityIteratorRange get_selected_entities( const Selector & selector, 00064 const AllBucketsRange& bucket_range ); 00065 00068 } // namespace mesh 00069 } // namespace stk_classic 00070 00071 //---------------------------------------------------------------------- 00072 //---------------------------------------------------------------------- 00073 00074 #endif // stk_mesh_GetEntities_hpp