Samchon Framework for CPP  1.0.0
samchon::templates::parallel::PRInvokeHistory Class Reference

#include <PRInvokeHistory.hpp>

Collaboration diagram for samchon::templates::parallel::PRInvokeHistory:

Public Member Functions

 PRInvokeHistory ()
 PRInvokeHistory (std::shared_ptr< protocol::Invoke > invoke)
auto getFirst () const -> size_t
auto getLast () const -> size_t
auto computeSize () const -> size_t
- Public Member Functions inherited from samchon::templates::slave::InvokeHistory
 InvokeHistory ()
 InvokeHistory (std::shared_ptr< protocol::Invoke > invoke)
virtual auto key () const -> size_t override
 Get a key that can identify the Entity uniquely. More...
auto getUID () const -> size_t
auto getListener () const -> std::string
auto computeElapsedTime () const -> long long
void complete ()

Detailed Description

History of an Invoke message.

The PRInvokeHistory is a class archiving history log of an Invoke message which requests the parallel process, created whenever ParallelSystemArray.sendSegmentData or ParallelSystemArray.sendSegmentData is called.

When the parallel process has completed, then complete() is called and the elapsed time is determined. The elapsed time is utilized for computation of performance index of each parallel slave system.

Class Diagram

Templates - Parallel System

Jeongho Nam

Definition at line 30 of file PRInvokeHistory.hpp.

Constructor & Destructor Documentation

samchon::templates::parallel::PRInvokeHistory::PRInvokeHistory ( )

Default Constructor.

Definition at line 48 of file PRInvokeHistory.hpp.

samchon::templates::parallel::PRInvokeHistory::PRInvokeHistory ( std::shared_ptr< protocol::Invoke invoke)

Construct from an Invoke message.

invokeAn Invoke message requesting a parallel process.

Definition at line 58 of file PRInvokeHistory.hpp.

Member Function Documentation

auto samchon::templates::parallel::PRInvokeHistory::getFirst ( ) const -> size_t

Get initial piece's index.

Returns initial piece's index in the section of requested parallel process.

The initial index.

Definition at line 85 of file PRInvokeHistory.hpp.

auto samchon::templates::parallel::PRInvokeHistory::getLast ( ) const -> size_t

Get final piece's index.

Returns initial piece's index in the section of requested parallel process. The range used is [first, last), which contains all the pieces' indices between first and last, including the piece pointed by index first, but not the piece pointed by the index last.

The final index.

Definition at line 99 of file PRInvokeHistory.hpp.

auto samchon::templates::parallel::PRInvokeHistory::computeSize ( ) const -> size_t

Compute number of allocated pieces.

Definition at line 107 of file PRInvokeHistory.hpp.

Referenced by samchon::templates::parallel::ParallelSystemArray< SlaveDriver >::sendPieceData().

Here is the caller graph for this function:

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