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"
30 friend class TimeLord;
43 [[deprecated(
"Use of shared TimeConverter objects is deprecated. If you're seeing this message, you likely have "
44 "changed a TimeConverter* to TimeConverter, but are still assigning it to be nullptr at the point of "
108 explicit operator bool()
const {
return factor != 0; }
114 SimTime_t factor = 0;
125 SST_FRIEND_SERIALIZE();
134 SST_FRIEND_SERIALIZE();
Base serialize class.
Definition serialize.h:110
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:45
A class to convert between a component's view of time and the core's view of time.
Definition timeConverter.h:28
TimeConverter(TimeConverter *tc)
Create a new TimeConverter object from a TimeConverter* Use this to create a local TimeConverter from...
Definition timeConverter.h:41
bool isInitialized() const
Function to check to see if the TimeConverter is intialized (non-zero factor)
Definition timeConverter.h:99
~TimeConverter()
TimeConverter* returned by the core should never be deleted by Elements.
Definition timeConverter.h:90
TimeConverter()
Do not directly invoke this constructor from Components to get a TimeConverter.
Definition timeConverter.h:56
void reset()
Resets a TimeConverter to uninitialized state (factor = 0)
Definition timeConverter.h:79
UnitAlgebra getPeriod() const
Definition timeLord.cc:179
SimTime_t getFactor() const
Definition timeConverter.h:74
SimTime_t convertFromCoreTime(SimTime_t time) const
Converts from the core's view to the components's view of time.
Definition timeConverter.h:69
SimTime_t convertToCoreTime(SimTime_t time) const
Converts from the component's view to the core's view of time.
Definition timeConverter.h:62
Class for creating and managing TimeConverter objects.
Definition timeLord.h:40
Performs Unit math in full precision.
Definition unitAlgebra.h:107