WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | Protected Attributes | List of all members
wrench::SimulationTimestampType Class Reference

File, Source, Whoami used to be hashed as key for unordered multimap for ongoing file operations. More...

#include <SimulationTimestampTypes.h>

Inheritance diagram for wrench::SimulationTimestampType:
wrench::SimulationTimestampEnergyConsumption wrench::SimulationTimestampLinkUsage wrench::SimulationTimestampPair wrench::SimulationTimestampPstateSet wrench::SimulationTimestampDiskRead wrench::SimulationTimestampDiskWrite wrench::SimulationTimestampFileCopy wrench::SimulationTimestampFileRead wrench::SimulationTimestampFileWrite wrench::SimulationTimestampTask wrench::SimulationTimestampDiskReadCompletion wrench::SimulationTimestampDiskReadFailure wrench::SimulationTimestampDiskReadStart wrench::SimulationTimestampDiskWriteCompletion wrench::SimulationTimestampDiskWriteFailure wrench::SimulationTimestampDiskWriteStart wrench::SimulationTimestampFileCopyCompletion wrench::SimulationTimestampFileCopyFailure wrench::SimulationTimestampFileCopyStart wrench::SimulationTimestampFileReadCompletion wrench::SimulationTimestampFileReadFailure wrench::SimulationTimestampFileReadStart wrench::SimulationTimestampFileWriteCompletion wrench::SimulationTimestampFileWriteFailure wrench::SimulationTimestampFileWriteStart wrench::SimulationTimestampTaskCompletion wrench::SimulationTimestampTaskFailure wrench::SimulationTimestampTaskStart wrench::SimulationTimestampTaskTermination

Public Member Functions

 SimulationTimestampType ()
 
More...
 
double getDate ()
 Retrieve the date recorded for this timestamp. More...
 

Protected Attributes

double date = -0.1
 Date.
 

Detailed Description

File, Source, Whoami used to be hashed as key for unordered multimap for ongoing file operations.

typedef std::tuple<std::shared_ptr<DataFile>, std::shared_ptr<FileLocation> , std::shared_ptr<StorageService> > File;

Parameters
file- tuple of three strings relating to File, Source and Whoami
Returns
XOR of hashes of file size_t file_hash( const File & file );

A top-level base class for simulation timestamps

Constructor & Destructor Documentation

◆ SimulationTimestampType()

wrench::SimulationTimestampType::SimulationTimestampType ( )

size_t file_hash( const File & file ) { return std::hash<void *>()(std::get<0>(file)) ^ std::hash<void *>()(std::get<1>(file)) ^ std::hash<void *>()(std::get<2>(file)); }

Member Function Documentation

◆ getDate()

double wrench::SimulationTimestampType::getDate ( )

Retrieve the date recorded for this timestamp.

Returns
the date of this timestamp

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