#include <time.h>
Public Types | |
| enum | Unit { FS, PS, NS, US, MS, SEC } |
Public Member Functions | |
| Time (DefaultCtrTag) | |
| Time (double, Unit) | |
| Time (double, bool scale) | |
| Time (unsigned long long, bool scale) | |
| Time (const Time &) | |
| Time & | operator= (const Time &) |
| unsigned long long | value () const |
| relative to the time resolution | |
| double | to_double () const |
| relative to the time resolution | |
| unsigned long long | to_default_time_unit () const |
| const std::string | to_string () const |
| bool | operator== (const Time &) const |
| bool | operator!= (const Time &) const |
| bool | operator< (const Time &) const |
| bool | operator<= (const Time &) const |
| bool | operator> (const Time &) const |
| bool | operator>= (const Time &) const |
| Time & | operator+= (const Time &) |
| Time & | operator-= (const Time &) |
| Time & | operator *= (double) |
| Time & | operator/= (double) |
| SAMPA_PERSISTENT (Time) | |
Static Public Member Functions | |
| static void | set_params (Params *) |
Static Public Attributes | |
| static Time | ZERO |
Private Attributes | |
| unsigned long long | m_value |
Static Private Attributes | |
| static Params * | M_params |
Friends | |
| const Time | operator+ (const Time &, const Time &) |
| const Time | operator- (const Time &, const Time &) |
| const Time | operator * (const Time &, double) |
| const Time | operator * (double, const Time &) |
| const Time | operator/ (const Time &, double) |
| double | operator/ (const Time &, const Time &) |
Classes | |
| struct | Params |
Definition at line 26 of file time.h.
| enum Sampa::Time::Unit |
| Sampa::Time::Time | ( | DefaultCtrTag | ) | [inline] |
| Sampa::Time::Time | ( | double | , | |
| Unit | ||||
| ) |
| Sampa::Time::Time | ( | double | , | |
| bool | scale | |||
| ) |
| Sampa::Time::Time | ( | unsigned long | long, | |
| bool | scale | |||
| ) |
| unsigned long long Sampa::Time::value | ( | ) | const [inline] |
| double Sampa::Time::to_double | ( | ) | const [inline] |
relative to the time resolution
Definition at line 132 of file time.h.
References m_value.
Referenced by Sampa::operator/().
| unsigned long long Sampa::Time::to_default_time_unit | ( | ) | const [inline] |
Definition at line 139 of file time.h.
References Sampa::Time::Params::m_default_time_unit, M_params, and m_value.
| const std::string Sampa::Time::to_string | ( | ) | const |
| bool Sampa::Time::operator== | ( | const Time & | t | ) | const [inline] |
| bool Sampa::Time::operator!= | ( | const Time & | t | ) | const [inline] |
| bool Sampa::Time::operator< | ( | const Time & | t | ) | const [inline] |
| bool Sampa::Time::operator<= | ( | const Time & | t | ) | const [inline] |
| bool Sampa::Time::operator> | ( | const Time & | t | ) | const [inline] |
| bool Sampa::Time::operator>= | ( | const Time & | t | ) | const [inline] |
| Time & Sampa::Time::operator *= | ( | double | d | ) | [inline] |
| Time & Sampa::Time::operator/= | ( | double | d | ) | [inline] |
| static void Sampa::Time::set_params | ( | Params * | ) | [static] |
| Sampa::Time::SAMPA_PERSISTENT | ( | Time | ) |
Time Sampa::Time::ZERO [static] |
Params* Sampa::Time::M_params [static, private] |
unsigned long long Sampa::Time::m_value [private] |
Definition at line 89 of file time.h.
Referenced by operator *=(), operator!=(), operator+=(), operator-=(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), to_default_time_unit(), to_double(), and value().
1.5.3