12#ifndef SST_CORE_TIMECONVERTER_H
13#define SST_CORE_TIMECONVERTER_H
15#include "sst/core/serialization/serialize_impl_fwd.h"
16#include "sst/core/sst_types.h"
17#include "sst/core/unitAlgebra.h"
33 friend class TimeLord;
34 friend class SyncManager;
125 explicit operator bool()
const {
return factor != 0; }
131 SimTime_t factor = 0;
142 SST_FRIEND_SERIALIZE();
151 SST_FRIEND_SERIALIZE();
Base serialize class.
Definition serialize.h:132
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:43
Definition syncManager.h:192
A class to convert between a component's view of time and the core's view of time.
Definition timeConverter.h:31
bool isInitialized() const
Function to check to see if the TimeConverter is initialized (non-zero factor).
Definition timeConverter.h:116
~TimeConverter()
TimeConverter* returned by the core should never be deleted by Elements.
Definition timeConverter.h:107
TimeConverter()
Do not directly invoke this constructor from Components to get a TimeConverter.
Definition timeConverter.h:45
void reset()
Resets a TimeConverter to uninitialized state (factor = 0).
Definition timeConverter.h:96
UnitAlgebra getPeriod() const
Definition timeLord.cc:119
SimTime_t getFactor() const
Definition timeConverter.h:91
SimTime_t convertFromCoreTime(SimTime_t time) const
Converts from the core's view to the components's view of time.
Definition timeConverter.h:86
SimTime_t convertToCoreTime(SimTime_t time) const
Converts from the component's view to the core's view of time.
Definition timeConverter.h:79
TimeConverter(const char *time)
Create a TimeConverter for the time specified as a UnitAlgebra.
Definition timeConverter.h:71
Class for creating and managing TimeConverter objects.
Definition timeLord.h:41
Performs Unit math in full precision.
Definition unitAlgebra.h:107