replicode
Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
r_code::Utils Class Reference

#include <utils.h>

Collaboration diagram for r_code::Utils:
Collaboration graph

Static Public Member Functions

static uint64_t GetTimeReference ()
 
static uint64_t GetBasePeriod ()
 
static uint64_t GetFloatTolerance ()
 
static uint64_t GetTimeTolerance ()
 
static void SetReferenceValues (uint64_t base_period, double float_tolerance, double time_tolerance)
 
static void SetTimeReference (uint64_t time_reference)
 
static bool Equal (double l, double r)
 
static bool Synchronous (uint64_t l, uint64_t r)
 
static uint64_t GetTimestamp (const Atom *iptr)
 
static void SetTimestamp (Atom *iptr, uint64_t t)
 
static void SetTimestamp (Code *object, uint32_t index, uint64_t t)
 
template<class O >
static uint64_t GetTimestamp (const O *object, uint16_t index)
 
template<class O >
static void SetTimestamp (O *object, uint16_t index, uint64_t t)
 
static std::string GetString (const Atom *iptr)
 
static void SetString (Atom *iptr, const std::string &s)
 
template<class O >
static std::string GetString (const O *object, uint16_t index)
 
template<class O >
static void SetString (O *object, uint16_t index, const std::string &s)
 
static int64_t GetResilience (uint64_t now, uint64_t time_to_live, uint64_t upr)
 
static int64_t GetGroupResilience (double resilience, double origin_upr, double destination_upr)
 
static std::string RelativeTime (uint64_t t)
 

Static Public Attributes

static const uint64_t MaxTime = 0xFFFFFFFFFFFFFFFF
 
static const uint64_t MaxTHZ = 0xFFFFFFFF
 

Static Private Attributes

static uint64_t TimeReference = 0
 
static uint64_t BasePeriod = 0
 
static double FloatTolerance = 0
 
static uint64_t TimeTolerance = 0
 

Member Function Documentation

bool r_code::Utils::Equal ( double  l,
double  r 
)
static
uint64_t r_code::Utils::GetBasePeriod ( )
static
uint64_t r_code::Utils::GetFloatTolerance ( )
static
int64_t r_code::Utils::GetGroupResilience ( double  resilience,
double  origin_upr,
double  destination_upr 
)
static
int64_t r_code::Utils::GetResilience ( uint64_t  now,
uint64_t  time_to_live,
uint64_t  upr 
)
static
std::string r_code::Utils::GetString ( const Atom iptr)
static
template<class O >
static std::string r_code::Utils::GetString ( const O *  object,
uint16_t  index 
)
inlinestatic
uint64_t r_code::Utils::GetTimeReference ( )
static
uint64_t r_code::Utils::GetTimestamp ( const Atom iptr)
static
template<class O >
static uint64_t r_code::Utils::GetTimestamp ( const O *  object,
uint16_t  index 
)
inlinestatic
uint64_t r_code::Utils::GetTimeTolerance ( )
static
std::string r_code::Utils::RelativeTime ( uint64_t  t)
static

Here is the call graph for this function:

void r_code::Utils::SetReferenceValues ( uint64_t  base_period,
double  float_tolerance,
double  time_tolerance 
)
static
void r_code::Utils::SetString ( Atom iptr,
const std::string &  s 
)
static

Here is the call graph for this function:

template<class O >
static void r_code::Utils::SetString ( O *  object,
uint16_t  index,
const std::string &  s 
)
inlinestatic
void r_code::Utils::SetTimeReference ( uint64_t  time_reference)
static
void r_code::Utils::SetTimestamp ( Atom iptr,
uint64_t  t 
)
static

Here is the call graph for this function:

void r_code::Utils::SetTimestamp ( Code object,
uint32_t  index,
uint64_t  t 
)
static

Here is the call graph for this function:

template<class O >
static void r_code::Utils::SetTimestamp ( O *  object,
uint16_t  index,
uint64_t  t 
)
inlinestatic
bool r_code::Utils::Synchronous ( uint64_t  l,
uint64_t  r 
)
static

Member Data Documentation

uint64_t r_code::Utils::BasePeriod = 0
staticprivate
double r_code::Utils::FloatTolerance = 0
staticprivate
const uint64_t r_code::Utils::MaxTHZ = 0xFFFFFFFF
static
const uint64_t r_code::Utils::MaxTime = 0xFFFFFFFFFFFFFFFF
static
uint64_t r_code::Utils::TimeReference = 0
staticprivate
uint64_t r_code::Utils::TimeTolerance = 0
staticprivate

The documentation for this class was generated from the following files: