1 // -*- c++ -*- 2 // 3 // Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana 4 // University Research and Technology 5 // Corporation. All rights reserved. 6 // Copyright (c) 2004-2005 The University of Tennessee and The University 7 // of Tennessee Research Foundation. All rights 8 // reserved. 9 // Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 10 // University of Stuttgart. All rights reserved. 11 // Copyright (c) 2004-2005 The Regents of the University of California. 12 // All rights reserved. 13 // $COPYRIGHT$ 14 // 15 // Additional copyrights may follow 16 // 17 // $HEADER$ 18 // 19 20 #if 0 /* OMPI_ENABLE_MPI_PROFILING */ 21 22 inline PMPI::Errhandler::Errhandler(const PMPI::Errhandler& e) 23 : handler_fn(e.handler_fn), mpi_errhandler(e.mpi_errhandler) { } 24 25 inline PMPI::Errhandler& 26 PMPI::Errhandler::operator=(const PMPI::Errhandler& e) 27 { 28 handler_fn = e.handler_fn; 29 mpi_errhandler = e.mpi_errhandler; 30 return *this; 31 } 32 33 inline bool 34 PMPI::Errhandler::operator==(const PMPI::Errhandler &a) 35 { 36 return (MPI2CPP_BOOL_T)(mpi_errhandler == a.mpi_errhandler); 37 } 38 39 #endif 40 41 inline void Free()42MPI::Errhandler::Free() 43 { 44 (void)MPI_Errhandler_free(&mpi_errhandler); 45 } 46 47 48 49 50