MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Types | Public Member Functions | Static Public Attributes | List of all members
encrypto::motion::AccumulatedCommunicationStatistics Class Reference

#include <analysis.h>

Public Types

using AccumulatorType = boost::accumulators::accumulator_set< std::size_t, boost::accumulators::stats< boost::accumulators::tag::mean, boost::accumulators::tag::sum > >
 

Public Member Functions

void Add (const communication::TransportStatistics &statistics)
 
void Add (const std::vector< communication::TransportStatistics > &statistics)
 
std::string PrintHumanReadable () const
 
boost::json::object ToJson () const
 

Static Public Attributes

static constexpr std::size_t kIdxNumberOfMessagesSent = 0
 
static constexpr std::size_t kIdxNumberOfMessagesReceived = 1
 
static constexpr std::size_t kIdxNumberOfBytesSent = 2
 
static constexpr std::size_t kIdxNumberOfBytesReceived = 3
 

Member Typedef Documentation

◆ AccumulatorType

using encrypto::motion::AccumulatedCommunicationStatistics::AccumulatorType = boost::accumulators::accumulator_set< std::size_t, boost::accumulators::stats<boost::accumulators::tag::mean, boost::accumulators::tag::sum> >

Member Function Documentation

◆ Add() [1/2]

void encrypto::motion::AccumulatedCommunicationStatistics::Add ( const communication::TransportStatistics statistics)
Here is the caller graph for this function:

◆ Add() [2/2]

void encrypto::motion::AccumulatedCommunicationStatistics::Add ( const std::vector< communication::TransportStatistics > &  statistics)
Here is the call graph for this function:

◆ PrintHumanReadable()

std::string encrypto::motion::AccumulatedCommunicationStatistics::PrintHumanReadable ( ) const
Here is the caller graph for this function:

◆ ToJson()

boost::json::object encrypto::motion::AccumulatedCommunicationStatistics::ToJson ( ) const

Member Data Documentation

◆ kIdxNumberOfBytesReceived

constexpr std::size_t encrypto::motion::AccumulatedCommunicationStatistics::kIdxNumberOfBytesReceived = 3
staticconstexpr

◆ kIdxNumberOfBytesSent

constexpr std::size_t encrypto::motion::AccumulatedCommunicationStatistics::kIdxNumberOfBytesSent = 2
staticconstexpr

◆ kIdxNumberOfMessagesReceived

constexpr std::size_t encrypto::motion::AccumulatedCommunicationStatistics::kIdxNumberOfMessagesReceived = 1
staticconstexpr

◆ kIdxNumberOfMessagesSent

constexpr std::size_t encrypto::motion::AccumulatedCommunicationStatistics::kIdxNumberOfMessagesSent = 0
staticconstexpr

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