DUECA/DUSIME
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dueca::NetCapacityLog Struct Reference

Network capacity use information. More...

Collaboration diagram for dueca::NetCapacityLog:
Collaboration graph
[legend]

Public Types

typedef NetCapacityLog __ThisDCOType__
 typedef for internal reference
 

Public Member Functions

 NetCapacityLog ()
 default constructor. More...
 
 NetCapacityLog (const uint16_t &node_id, const uint16_t &n_points, const fixvector< 10, uint16_t > &regular, const fixvector< 10, uint16_t > &total)
 Constructor with arguments.
 
 NetCapacityLog (const uint16_t &node_id, const uint16_t &n_points)
 Constructor with all single (non-iterable) arguments.
 
 NetCapacityLog (const NetCapacityLog &o)
 copy constructor. More...
 
 NetCapacityLog (::dueca::AmorphReStore &r)
 constructor to restore an NetCapacityLog from amorphous storage. More...
 
 ~NetCapacityLog ()
 destructor. More...
 
void packData (::dueca::AmorphStore &s) const
 packs the NetCapacityLog into amorphous storage. More...
 
void packDataDiff (::dueca::AmorphStore &s, const NetCapacityLog &ref) const
 packs the NetCapacityLog into amorphous storage. More...
 
void unPackData (::dueca::AmorphReStore &s)
 unpacks the NetCapacityLog from an amorphous storage. More...
 
void unPackDataDiff (::dueca::AmorphReStore &s)
 unpacks the differences for NetCapacityLog from an amorphous storage. More...
 
bool operator== (const NetCapacityLog &o) const
 Test for equality. More...
 
bool operator!= (const NetCapacityLog &o) const
 Test for inequality. More...
 
NetCapacityLogoperator= (const NetCapacityLog &o)
 Assignment operator. More...
 
std::ostream & print (std::ostream &s) const
 prints the NetCapacityLog to a stream. More...
 
 NetCapacityLog (const uint16_t &node_id)
 custom constructor added
 
void histoLog (unsigned regular, unsigned fill, unsigned capacity)
 Enter a datapoint in the histogram log. More...
 
float histRegular (unsigned idx) const
 fraction of regular fill
 
float histTotal (unsigned idx) const
 fraction of total fill
 
void printline (std::ostream &s, TimeTickType tick) const
 Print a line in a file with compact net load data.
 

Static Public Member Functions

static void * operator new (size_t size)
 new operator "new", which places objects not on a heap, but in one of the memory arenas. More...
 
static void operator delete (void *p)
 new operator "delete", to go with the new version of operator new. More...
 
static void * operator new (size_t size, NetCapacityLog *&o)
 placement "new", needed for stl. More...
 
static void printhead (std::ostream &os, const std::string &label)
 Print a header to a file.
 

Public Attributes

uint16_t node_id
 node id for which this capacity info is collected
 
uint16_t n_points
 number of cycles counted
 
fixvector< 10, uint16_t > regular
 standard message capacity histogram
 
fixvector< 10, uint16_t > total
 total fill capacity histogram
 

Static Public Attributes

static const char *const classname
 The name of this class. More...
 
static const uint32_t magic_check_number
 a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes. More...
 

Detailed Description

Network capacity use information.

Provides, per participating node, a coarse histogram of message size split into regular data size, and total size (including fill data)

Constructor & Destructor Documentation

◆ NetCapacityLog() [1/3]

dueca::NetCapacityLog::NetCapacityLog ( )

default constructor.

◆ NetCapacityLog() [2/3]

dueca::NetCapacityLog::NetCapacityLog ( const NetCapacityLog o)

copy constructor.

◆ NetCapacityLog() [3/3]

dueca::NetCapacityLog::NetCapacityLog ( ::dueca::AmorphReStore r)

constructor to restore an NetCapacityLog from amorphous storage.

◆ ~NetCapacityLog()

dueca::NetCapacityLog::~NetCapacityLog ( )

destructor.

Member Function Documentation

◆ operator new() [1/2]

static void* dueca::NetCapacityLog::operator new ( size_t  size)
static

new operator "new", which places objects not on a heap, but in one of the memory arenas.

This to speed up memory management.

◆ operator delete()

static void dueca::NetCapacityLog::operator delete ( void *  p)
static

new operator "delete", to go with the new version of operator new.

◆ operator new() [2/2]

static void* dueca::NetCapacityLog::operator new ( size_t  size,
NetCapacityLog *&  o 
)
inlinestatic

placement "new", needed for stl.

◆ packData()

void dueca::NetCapacityLog::packData ( ::dueca::AmorphStore s) const

packs the NetCapacityLog into amorphous storage.

◆ packDataDiff()

void dueca::NetCapacityLog::packDataDiff ( ::dueca::AmorphStore s,
const NetCapacityLog ref 
) const

packs the NetCapacityLog into amorphous storage.

only differences with a previous object are packed.

◆ unPackData()

void dueca::NetCapacityLog::unPackData ( ::dueca::AmorphReStore s)

unpacks the NetCapacityLog from an amorphous storage.

◆ unPackDataDiff()

void dueca::NetCapacityLog::unPackDataDiff ( ::dueca::AmorphReStore s)

unpacks the differences for NetCapacityLog from an amorphous storage.

◆ operator==()

bool dueca::NetCapacityLog::operator== ( const NetCapacityLog o) const

Test for equality.

◆ operator!=()

bool dueca::NetCapacityLog::operator!= ( const NetCapacityLog o) const
inline

Test for inequality.

◆ operator=()

NetCapacityLog& dueca::NetCapacityLog::operator= ( const NetCapacityLog o)

Assignment operator.

◆ print()

std::ostream& dueca::NetCapacityLog::print ( std::ostream &  s) const

prints the NetCapacityLog to a stream.

◆ histoLog()

void dueca::NetCapacityLog::histoLog ( unsigned  regular,
unsigned  fill,
unsigned  capacity 
)

Enter a datapoint in the histogram log.

Parameters
regularRegular bytes in message
fillFill bytes in message
capacityMax size of message

Member Data Documentation

◆ classname

const char* const dueca::NetCapacityLog::classname
static

The name of this class.

◆ magic_check_number

const uint32_t dueca::NetCapacityLog::magic_check_number
static

a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes.


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