g4tools  5.4.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::wroot::mpi_basket_add Class Reference
Inheritance diagram for tools::wroot::mpi_basket_add:
Inheritance graph
[legend]
Collaboration diagram for tools::wroot::mpi_basket_add:
Collaboration graph
[legend]

Public Member Functions

virtual bool add_basket (basket *a_basket)
 
 mpi_basket_add (impi &a_mpi, int a_dest, int a_tag, uint32 a_id, uint32 a_icol)
 
- Public Member Functions inherited from tools::wroot::branch::iadd_basket
virtual ~iadd_basket ()
 

Protected Member Functions

 mpi_basket_add (const mpi_basket_add &a_from)
 
mpi_basket_addoperator= (const mpi_basket_add &a_from)
 

Protected Attributes

impim_mpi
 
int m_dest
 
int m_tag
 
uint32 m_id
 
uint32 m_icol
 

Detailed Description

Definition at line 13 of file mpi_basket_add.

Constructor & Destructor Documentation

◆ mpi_basket_add() [1/2]

tools::wroot::mpi_basket_add::mpi_basket_add ( impi a_mpi,
int  a_dest,
int  a_tag,
uint32  a_id,
uint32  a_icol 
)
inline

Definition at line 22 of file mpi_basket_add.

23  :m_mpi(a_mpi),m_dest(a_dest),m_tag(a_tag),m_id(a_id),m_icol(a_icol)
24  {}

◆ mpi_basket_add() [2/2]

tools::wroot::mpi_basket_add::mpi_basket_add ( const mpi_basket_add a_from)
inlineprotected

Definition at line 26 of file mpi_basket_add.

26  :parent()
27  ,m_mpi(a_from.m_mpi),m_dest(a_from.m_dest),m_tag(a_from.m_tag)
28  ,m_id(a_from.m_id),m_icol(a_from.m_icol)
29  {}

Member Function Documentation

◆ add_basket()

virtual bool tools::wroot::mpi_basket_add::add_basket ( basket a_basket)
inlinevirtual

Implements tools::wroot::branch::iadd_basket.

Reimplemented in tools::wroot::mpi_ntuple_column_wise::basket_add.

Definition at line 16 of file mpi_basket_add.

16  {
17  bool status = mpi_send_basket(m_mpi,m_dest,m_tag,m_id,m_icol,*a_basket);
18  delete a_basket;
19  return status;
20  }

◆ operator=()

mpi_basket_add& tools::wroot::mpi_basket_add::operator= ( const mpi_basket_add a_from)
inlineprotected

Definition at line 30 of file mpi_basket_add.

30  {
31  m_dest = a_from.m_dest;
32  m_tag = a_from.m_tag;
33  m_id = a_from.m_id;
34  m_icol = a_from.m_icol;
35  return *this;
36  }

Member Data Documentation

◆ m_dest

int tools::wroot::mpi_basket_add::m_dest
protected

Definition at line 39 of file mpi_basket_add.

◆ m_icol

uint32 tools::wroot::mpi_basket_add::m_icol
protected

Definition at line 42 of file mpi_basket_add.

◆ m_id

uint32 tools::wroot::mpi_basket_add::m_id
protected

Definition at line 41 of file mpi_basket_add.

◆ m_mpi

impi& tools::wroot::mpi_basket_add::m_mpi
protected

Definition at line 38 of file mpi_basket_add.

◆ m_tag

int tools::wroot::mpi_basket_add::m_tag
protected

Definition at line 40 of file mpi_basket_add.


The documentation for this class was generated from the following file:
tools::wroot::mpi_basket_add::m_icol
uint32 m_icol
Definition: mpi_basket_add:42
tools::wroot::mpi_basket_add::m_dest
int m_dest
Definition: mpi_basket_add:39
tools::wroot::mpi_basket_add::m_mpi
impi & m_mpi
Definition: mpi_basket_add:38
tools::wroot::mpi_send_basket
bool mpi_send_basket(impi &a_mpi, int a_dest, int a_tag, uint32 a_id, uint32 a_icol, const basket &a_basket)
Definition: mpi_send_basket:42
tools::wroot::mpi_basket_add::m_id
uint32 m_id
Definition: mpi_basket_add:41
tools::wroot::mpi_basket_add::m_tag
int m_tag
Definition: mpi_basket_add:40