Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
type_converter64 Struct Reference

#include <utils.hpp>

Collaboration diagram for type_converter64:

Public Member Functions

 type_converter64 (uint64_t n)
 
uint64_t to_ui () const
 
double to_f () const
 

Public Attributes

union { 
 
   uint64_t   ui 
 
   double   f 
 
_data 
 

Detailed Description

Definition at line 23 of file utils.hpp.

Constructor & Destructor Documentation

◆ type_converter64()

type_converter64::type_converter64 ( uint64_t n)
inline

Definition at line 28 of file utils.hpp.

28{ _data.ui = n; }
union type_converter64::@71 _data

Member Function Documentation

◆ to_f()

double type_converter64::to_f ( ) const
inline

Definition at line 30 of file utils.hpp.

30{ return _data.f; }

◆ to_ui()

uint64_t type_converter64::to_ui ( ) const
inline

Definition at line 29 of file utils.hpp.

29{ return _data.ui; }

Member Data Documentation

◆ [union]

union { ... } type_converter64::_data

◆ f

double type_converter64::f

Definition at line 26 of file utils.hpp.

◆ ui

uint64_t type_converter64::ui

Definition at line 25 of file utils.hpp.


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