xcal
基于 C++23 的现代图形渲染引擎
|
时间点属性类 更多...
#include <time_point.hpp>
Public 成员函数 | |
TimePoint () | |
默认构造函数 | |
TimePoint (const TimePoint &)=delete | |
TimePoint (TimePoint &&)=delete | |
TimePoint & | operator= (const TimePoint &)=delete |
TimePoint & | operator= (TimePoint &&)=delete |
TimePoint (float_t seconds_since_epoch) | |
从浮点数秒构造函数 | |
size_t | microseconds_since_epoch () const |
获取从纪元开始的微秒数 | |
float_t | seconds_since_epoch () const |
获取从纪元开始的秒数 | |
void | set_microseconds_since_epoch (size_t us) |
设置从纪元开始的微秒数 | |
void | set_seconds_since_epoch (float_t seconds) |
设置从纪元开始的秒数 | |
TimeDuration | operator- (const TimePoint &other) const |
时间点减法运算(计算时间差) | |
bool | operator== (const TimePoint &other) const |
时间点相等比较 | |
bool | operator!= (const TimePoint &other) const |
时间点不等比较 | |
bool | operator< (const TimePoint &other) const |
时间点小于比较 | |
bool | operator> (const TimePoint &other) const |
时间点大于比较 | |
bool | operator<= (const TimePoint &other) const |
时间点小于等于比较 | |
bool | operator>= (const TimePoint &other) const |
时间点大于等于比较 | |
std::string | to_string () const |
转换为字符串表示 | |
std::string | format (const std::string &) const |
格式化时间输出 | |
![]() | |
MProperty ()=default | |
MProperty (const MProperty &)=delete | |
MProperty (MProperty &&)=delete | |
MProperty & | operator= (const MProperty &)=delete |
MProperty & | operator= (MProperty &&)=delete |
bool_t | is_changed () const |
void | set_changed () const |
void | reset_changed () const |
Type | type () const |
virtual | ~MProperty ()=default |
|
inline |
|
delete |
|
delete |
|
inlineexplicit |
|
inline |
格式化时间输出
format_pattern | 格式模式(TODO: 实现具体格式化逻辑) |
在文件 time_point.hpp 第 187 行定义.
引用了 xcal::to_string().
被这些函数引用 TEST().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |