1.3.49
 
Loading...
Searching...
No Matches
helios::Time Struct Reference

Time vector. More...

#include <helios_vector_types.h>

Public Member Functions

constexpr Time ()
 Default constructor.
 
 Time (int hour, int minute)
 second/minute/hour constructor
 
 Time (int hour, int minute, int second)
 minute/hour constructor
 
constexpr bool operator== (const helios::Time &c) const noexcept
 check for equality of two times
 
constexpr bool operator!= (const helios::Time &c) const noexcept
 check for inequality of two times
 

Data Fields

int second
 Second of minute.
 
int minute
 Minute of hour.
 
int hour
 Hour of day.
 

Friends

std::ostream & operator<< (std::ostream &os, helios::Time const &t)
 Write Time to output stream.
 

Detailed Description

Time vector.

See also
make_Time()

Definition at line 1831 of file helios_vector_types.h.

Constructor & Destructor Documentation

◆ Time() [1/3]

constexpr helios::Time::Time ( )
inlineconstexpr

Default constructor.

Definition at line 1841 of file helios_vector_types.h.

◆ Time() [2/3]

helios::Time::Time ( int  hour,
int  minute 
)
inline

second/minute/hour constructor

Parameters
[in]hourHour of day (0-23)
[in]minuteMinute of hour (0-59)

Definition at line 1849 of file helios_vector_types.h.

◆ Time() [3/3]

helios::Time::Time ( int  hour,
int  minute,
int  second 
)
inline

minute/hour constructor

Parameters
[in]hourHour of day (0-23)
[in]minuteMinute of hour (0-59)
[in]secondSecond of minute (0-59)

Definition at line 1864 of file helios_vector_types.h.

Member Function Documentation

◆ operator!=()

constexpr bool helios::Time::operator!= ( const helios::Time c) const
constexprnoexcept

check for inequality of two times

Definition at line 1925 of file helios_vector_types.h.

◆ operator==()

constexpr bool helios::Time::operator== ( const helios::Time c) const
constexprnoexcept

check for equality of two times

Definition at line 1921 of file helios_vector_types.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
helios::Time const &  t 
)
friend

Write Time to output stream.

Definition at line 1881 of file helios_vector_types.h.

Field Documentation

◆ hour

int helios::Time::hour

Hour of day.

Definition at line 1838 of file helios_vector_types.h.

◆ minute

int helios::Time::minute

Minute of hour.

Definition at line 1836 of file helios_vector_types.h.

◆ second

int helios::Time::second

Second of minute.

Definition at line 1834 of file helios_vector_types.h.


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