The Pt framework defines a number of signed and unsigned, fixed-size integer types. These are typedefs of fundamental integer types and the actual type depends on the platform.
The classes that represent dates and times, namely Pt::Date, Pt::Time, Pt::DateTime and Pt::Timespan, can be used for comparison, sorting or calculating dates, times and timespans. These types are serializable and conversion to ISO string format is supported as well.
The class Pt::Any is able to contain any other copyable type. This is useful in situations where type erasure is required, for example, to store completely unrelated types in a list or vector.
Classes | |
class | Any |
Contains an arbitrary type. More... | |
class | Date |
Date expressed in year, month, and day. More... | |
class | DateTime |
Combined Date and Time value. More... | |
class | Event |
Base class for all event types. More... | |
class | InvalidDate |
Indicates an invalid date value. More... | |
class | InvalidTime |
Indicates an invalid time value. More... | |
class | Time |
Time expressed in hours, minutes, seconds and milliseconds. More... | |
class | Timespan |
Represents time spans in microsecond resolution. More... | |
struct | Void |
Void type. More... | |
Typedefs | |
typedef int_type | int16_t |
Signed 16-bit integer type. | |
typedef int_type | int32_t |
Signed 32-bit integer type. | |
typedef int_type | int64_t |
Signed 64-bit integer type. | |
typedef int_type | int8_t |
Signed 8-bit integer type. | |
typedef uint_type | uint16_t |
Unsigned 16-bit integer type. | |
typedef uint_type | uint32_t |
Unsigned 32-bit integer type. | |
typedef uint_type | uint64_t |
Unsigned 64-bit integer type. | |
typedef uint_type | uint8_t |
Unsigned 8-bit integer type. | |