MIRA
Public Member Functions | Public Attributes | Friends | List of all members
ToHex< T > Class Template Reference

Can be used with toString to convert values to their string hex representation. More...

#include <utils/ToString.h>

Public Member Functions

 ToHex (T v)
 
 operator T () const
 

Public Attributes

value
 

Friends

std::ostream & operator<< (std::ostream &oStream, const ToHex< T > &iValue)
 

Detailed Description

template<typename T>
class mira::ToHex< T >

Can be used with toString to convert values to their string hex representation.

std::string s = toString<ToHex<uint32>>(255);

Constructor & Destructor Documentation

◆ ToHex()

ToHex ( v)
inline

Member Function Documentation

◆ operator T()

operator T ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  oStream,
const ToHex< T > &  iValue 
)
friend

Member Data Documentation

◆ value

T value

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