Sierra Toolkit Version of the Day
GetBuckets.hpp
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 #ifndef stk_mesh_GetBucket_hpp
00010 #define stk_mesh_GetBucket_hpp
00011 
00012 //----------------------------------------------------------------------
00013 
00014 #include <iosfwd>
00015 #include <stk_mesh/base/Types.hpp>
00016 #include <stk_mesh/base/Selector.hpp>
00017 #include <stk_mesh/base/Iterators.hpp>
00018 
00019 //----------------------------------------------------------------------
00020 
00021 namespace stk {
00022 namespace mesh {
00023 
00028 //----------------------------------------------------------------------
00029 
00030 /* \brief  Select buckets from the input to the output. Buckets in the input
00031  *         vector will be placed in the output vector if the bucket is
00032  *         selected by the selector argument.
00033  *         On entry, the output vector is cleared before being filled with
00034  *         selected buckets.
00035  */
00036 void get_buckets( const Selector & selector ,
00037                   const std::vector< Bucket * > & input ,
00038                         std::vector< Bucket * > & output );
00039 
00043 AllSelectedBucketsRange get_buckets( const Selector & selector, const BulkData& mesh );
00044 
00048 AllBucketsRange get_buckets( const BulkData& mesh );
00049 
00053 AllBucketsRange get_buckets( EntityRank entity_rank, const BulkData& mesh );
00054 
00058 AllSelectedBucketsRange get_buckets( const Selector & selector, const AllBucketsRange& range);
00059 
00060 /* \brief  Get the parts from the union part vector that the bucket is
00061  *         contained in. 
00062  */
00063 void get_involved_parts( const PartVector & union_parts,
00064                          const Bucket & candidate,
00065                          PartVector & involved_parts);
00066 
00067 //----------------------------------------------------------------------
00070 } // namespace mesh
00071 } // namespace stk
00072 
00073 //----------------------------------------------------------------------
00074 //----------------------------------------------------------------------
00075 
00076 #endif
00077 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends