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" 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();
139 #endif // SST_CORE_TIMECONVERTER_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:42
SimTime_t getFactor() const
Definition: timeConverter.h:74
A class to convert between a component's view of time and the core's view of time.
Definition: timeConverter.h:27
~TimeConverter()
TimeConverter* returned by the core should never be deleted by Elements.
Definition: timeConverter.h:90
Base serialize class.
Definition: serialize.h:113
SimTime_t convertFromCoreTime(SimTime_t time) const
Converts from the core's view to the components's view of time.
Definition: timeConverter.h:69
void reset()
Resets a TimeConverter to uninitialized state (factor = 0)
Definition: timeConverter.h:79
SimTime_t convertToCoreTime(SimTime_t time) const
Converts from the component's view to the core's view of time.
Definition: timeConverter.h:62
UnitAlgebra getPeriod() const
Definition: timeLord.cc:179
TimeConverter(TimeConverter *tc)
Create a new TimeConverter object from a TimeConverter* Use this to create a local TimeConverter from...
Definition: timeConverter.h:41
Class for creating and managing TimeConverter objects.
Definition: timeLord.h:39
TimeConverter()
Do not directly invoke this constructor from Components to get a TimeConverter.
Definition: timeConverter.h:56
Performs Unit math in full precision.
Definition: unitAlgebra.h:105
bool isInitialized() const
Function to check to see if the TimeConverter is initialized (non-zero factor)
Definition: timeConverter.h:99