10 #ifndef stk_mesh_GetEntities_hpp
11 #define stk_mesh_GetEntities_hpp
15 #include <stk_mesh/base/Entity.hpp>
16 #include <stk_mesh/base/Selector.hpp>
17 #include <stk_mesh/base/BulkData.hpp>
18 #include <stk_mesh/base/Bucket.hpp>
19 #include <stk_mesh/base/Iterators.hpp>
23 namespace stk_classic {
39 const BulkData & mesh ,
40 std::vector<EntityRank> & count );
44 std::vector< Entity*> & entities);
54 const std::vector< Bucket * > & input_buckets );
60 const std::vector< Bucket * > & input_buckets ,
61 std::vector< Entity * > & entities );
64 const AllBucketsRange& bucket_range );
74 #endif // stk_mesh_GetEntities_hpp
void get_entities(const BulkData &mesh, EntityRank entity_rank, std::vector< Entity * > &entities)
Get all entities of the specified type, sorted by ID.
void get_selected_entities(const Selector &selector, const std::vector< Bucket * > &input_buckets, std::vector< Entity * > &entities)
Get entities in selected buckets (selected by the given selector instance), and sorted by ID...
void count_entities(const Selector &selector, const BulkData &mesh, std::vector< EntityRank > &count)
Local count selected entities of each type.
EntityRank entity_rank(const EntityKey &key)
Given an entity key, return an entity type (rank).
unsigned count_selected_entities(const Selector &selector, const std::vector< Bucket * > &input_buckets)
Count entities in selected buckets (selected by the given selector instance), and sorted by ID...