TIMPI
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
TIMPI::ManageOp Class Reference

#include <op_function.h>

Inheritance diagram for TIMPI::ManageOp:
[legend]

Public Member Functions

 ManageOp (MPI_User_function *func, int commute, MPI_Op *op)
 
virtual ~ManageOp () override
 

Static Public Member Functions

static void add (std::unique_ptr< SemiPermanent > obj)
 

Private Attributes

MPI_Op * _op
 

Detailed Description

Definition at line 223 of file op_function.h.

Constructor & Destructor Documentation

◆ ManageOp()

TIMPI::ManageOp::ManageOp ( MPI_User_function *  func,
int  commute,
MPI_Op *  op 
)
inline

Definition at line 226 of file op_function.h.

References _op.

227  : _op(op)
228  {
229  timpi_call_mpi(MPI_Op_create(func, commute, _op));
230  }

◆ ~ManageOp()

virtual TIMPI::ManageOp::~ManageOp ( )
inlineoverridevirtual

Definition at line 232 of file op_function.h.

References _op.

232  {
233  MPI_Op_free(_op);
234  }

Member Function Documentation

◆ add()

void TIMPI::SemiPermanent::add ( std::unique_ptr< SemiPermanent obj)
staticinherited

Member Data Documentation

◆ _op

MPI_Op* TIMPI::ManageOp::_op
private

Definition at line 236 of file op_function.h.

Referenced by ManageOp(), and ~ManageOp().


The documentation for this class was generated from the following file: