Sierra Toolkit Version of the Day
diag/IdentProc.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_search_diag_IdentProc_hpp
00010 #define stk_search_diag_IdentProc_hpp
00011 
00012 #include <stk_util/diag/Writer.hpp>
00013 #include <stk_search/IdentProc.hpp>
00014 
00015 
00016 namespace stk {
00017 namespace search {
00018 namespace ident {
00019 
00020 template <class K, class P>
00021 stk::diag::Writer &operator<<(stk::diag::Writer &dout, const IdentProc<K, P> &ident_proc) {
00022   if (dout.shouldPrint()) {
00023     dout << "id " << std::hex << ident_proc.ident << std::dec << ", proc " << ident_proc.proc;
00024   }
00025 
00026   return dout;
00027 }
00028 
00029 } // namespace ident
00030 } // namespace search
00031 } // namespace stk
00032 
00033 #endif // stk_search_diag_IdentProc_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends