Flex  0.17.9
Public Member Functions | Public Attributes | List of all members
gs::Day Struct Reference

#include <types.h>

Collaboration diagram for gs::Day:
Collaboration graph
[legend]

Public Member Functions

 Day ()=default
 
 ~Day ()=default
 
 Day (int64_t ts)
 
std::string to_string () const
 
uint32_t to_u32 () const
 
void from_u32 (uint32_t val)
 
int64_t to_timestamp () const
 
void from_timestamp (int64_t ts)
 
bool operator< (const Day &rhs) const
 
bool operator== (const Day &rhs) const
 
int year () const
 
int month () const
 
int day () const
 
int hour () const
 

Public Attributes

union {
   DayValue   internal
 
   uint32_t   integer
 
value
 

Constructor & Destructor Documentation

◆ Day() [1/2]

gs::Day::Day ( )
default

◆ ~Day()

gs::Day::~Day ( )
default

◆ Day() [2/2]

gs::Day::Day ( int64_t  ts)

Member Function Documentation

◆ day()

int gs::Day::day ( ) const

◆ from_timestamp()

void gs::Day::from_timestamp ( int64_t  ts)
inline

◆ from_u32()

void gs::Day::from_u32 ( uint32_t  val)

◆ hour()

int gs::Day::hour ( ) const

◆ month()

int gs::Day::month ( ) const

◆ operator<()

bool gs::Day::operator< ( const Day rhs) const
inline

◆ operator==()

bool gs::Day::operator== ( const Day rhs) const
inline

◆ to_string()

std::string gs::Day::to_string ( ) const

◆ to_timestamp()

int64_t gs::Day::to_timestamp ( ) const
inline

◆ to_u32()

uint32_t gs::Day::to_u32 ( ) const

◆ year()

int gs::Day::year ( ) const

Member Data Documentation

◆ integer

uint32_t gs::Day::integer

◆ internal

DayValue gs::Day::internal

◆ value

union { ... } gs::Day::value

The documentation for this struct was generated from the following files: