File, Source, Whoami used to be hashed as key for unordered multimap for ongoing file operations. More...
#include <SimulationTimestampTypes.h>
Public Member Functions | |
SimulationTimestampType () | |
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:
- SimulationTimestampTypes.h
- SimulationTimestampTypes.cpp