#include <vtime.hh>
Public Member Functions | |
Vtime (const Vtime &other) | |
Vtime (const byte_t other) | |
Vtime (const float fsecs) | |
Vtime (const timeval_t &other) | |
operator byte_t () | |
operator float () | |
operator timeval_t () | |
std::ostream & | output (std::ostream &o) const |
Private Types | |
typedef u_int8_t | byte_t |
typedef unsigned | secs_t |
Private Attributes | |
raw | _value |
Internal raw value. | |
Classes | |
struct | raw |
Convenience data structure for raw access. More... |
typedef u_int8_t olsr::utl::Vtime::byte_t [private] |
typedef unsigned olsr::utl::Vtime::secs_t [private] |
olsr::utl::Vtime::Vtime | ( | const Vtime & | other | ) | [inline] |
Copy constructor
olsr::utl::Vtime::Vtime | ( | const byte_t | other | ) | [inline, explicit] |
Constructor. Initializes from an encoded byte.
olsr::utl::Vtime::Vtime | ( | const float | fsecs | ) | [inline] |
Constructor.
olsr::utl::Vtime::Vtime | ( | const timeval_t & | other | ) | [inline] |
Constructor.
olsr::utl::Vtime::operator byte_t | ( | ) | [inline] |
Operator for conversion to byte.
olsr::utl::Vtime::operator float | ( | ) | [inline] |
Operator for conversion to seconds.
olsr::utl::Vtime::operator timeval_t | ( | ) | [inline] |
Operator for conversion to time.
std::ostream & olsr::utl::Vtime::output | ( | std::ostream & | o | ) | const [inline] |
Printing method.
raw olsr::utl::Vtime::_value [private] |
Internal raw value.