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...
 

Detailed Description

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

typedef std::tuple<WorkflowFile *, FileLocation *, 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: