MySQL 8.0.39
Source Code Documentation
classic_protocol::borrowable::binary::Time Class Reference

#include <classic_protocol_binary.h>

Public Member Functions

constexpr Time ()=default
 
constexpr Time (bool is_negative, uint32_t days, uint8_t hour, uint8_t minute, uint8_t second, uint32_t microsecond=0)
 
constexpr bool is_negative () const
 
constexpr uint32_t days () const
 
constexpr uint8_t hour () const
 
constexpr uint8_t minute () const
 
constexpr uint8_t second () const
 
constexpr uint32_t microsecond () const
 

Private Attributes

bool is_negative_ {}
 
uint32_t days_ {}
 
uint8_t hour_ {}
 
uint8_t minute_ {}
 
uint8_t second_ {}
 
uint32_t microsecond_ {}
 

Friends

bool operator== (const Time &lhs, const Time &rhs)
 
bool operator!= (const Time &lhs, const Time &rhs)
 

Constructor & Destructor Documentation

◆ Time() [1/2]

constexpr classic_protocol::borrowable::binary::Time::Time ( )
constexprdefault

◆ Time() [2/2]

constexpr classic_protocol::borrowable::binary::Time::Time ( bool  is_negative,
uint32_t  days,
uint8_t  hour,
uint8_t  minute,
uint8_t  second,
uint32_t  microsecond = 0 
)
inlineconstexpr

Member Function Documentation

◆ days()

constexpr uint32_t classic_protocol::borrowable::binary::Time::days ( ) const
inlineconstexpr

◆ hour()

constexpr uint8_t classic_protocol::borrowable::binary::Time::hour ( ) const
inlineconstexpr

◆ is_negative()

constexpr bool classic_protocol::borrowable::binary::Time::is_negative ( ) const
inlineconstexpr

◆ microsecond()

constexpr uint32_t classic_protocol::borrowable::binary::Time::microsecond ( ) const
inlineconstexpr

◆ minute()

constexpr uint8_t classic_protocol::borrowable::binary::Time::minute ( ) const
inlineconstexpr

◆ second()

constexpr uint8_t classic_protocol::borrowable::binary::Time::second ( ) const
inlineconstexpr

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const Time lhs,
const Time rhs 
)
friend

◆ operator==

bool operator== ( const Time lhs,
const Time rhs 
)
friend

Member Data Documentation

◆ days_

uint32_t classic_protocol::borrowable::binary::Time::days_ {}
private

◆ hour_

uint8_t classic_protocol::borrowable::binary::Time::hour_ {}
private

◆ is_negative_

bool classic_protocol::borrowable::binary::Time::is_negative_ {}
private

◆ microsecond_

uint32_t classic_protocol::borrowable::binary::Time::microsecond_ {}
private

◆ minute_

uint8_t classic_protocol::borrowable::binary::Time::minute_ {}
private

◆ second_

uint8_t classic_protocol::borrowable::binary::Time::second_ {}
private

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