9 #ifndef stk_mesh_GetBucket_hpp
10 #define stk_mesh_GetBucket_hpp
15 #include <stk_mesh/base/Types.hpp>
16 #include <stk_mesh/base/Selector.hpp>
17 #include <stk_mesh/base/Iterators.hpp>
36 template<
class SELECTOR>
39 const std::vector< Bucket * > & input ,
40 std::vector< Bucket * > &
output )
43 for ( std::vector< Bucket * >::const_iterator
44 i = input.begin() ; i != input.end() ; ++i ) {
45 Bucket *
const b = *i ;
46 if ( selector( *b ) ) { output.push_back( b ); }
53 AllSelectedBucketsRange
get_buckets(
const Selector & selector,
const BulkData& mesh );
58 AllBucketsRange
get_buckets(
const BulkData& mesh );
68 AllSelectedBucketsRange
get_buckets(
const Selector & selector,
const AllBucketsRange& range);
73 void get_involved_parts(
const PartVector & union_parts,
74 const Bucket & candidate,
std::vector< Part * > PartVector
Collections of parts are frequently maintained as a vector of Part pointers.
std::ostream & output()
Function output returns the processor output log stream. This stream is connected via an mpi_filebuf ...
EntityRank entity_rank(const EntityKey &key)
Given an entity key, return an entity type (rank).
AllSelectedBucketsRange get_buckets(const Selector &selector, const BulkData &mesh)