XX CMake Package
Loading...
Searching...
No Matches
XX::ByteFours Class Reference

convert a byte into a base 4 representation More...

#include <XXByteFours.h>

Detailed Description

convert a byte into a base 4 representation

Public Types

enum  FoursValue : uint8_t { O = 0 , I = 1 , Z = 2 , T = 3 }

Public Member Functions

 ByteFours (FoursValue a, FoursValue b, FoursValue c, FoursValue d)
 ByteFours (uint8_t byte=0)
FoursValue value (const FoursValue &index) const
 operator uint8_t () const
QString toString () const

Friends

std::ostream & operator<< (std::ostream &out, const ByteFours &bf)
QDebug operator<< (QDebug stream, const ByteFours &bf)

Member Enumeration Documentation

◆ FoursValue

enum XX::ByteFours::FoursValue : uint8_t
Enumerator

Constructor & Destructor Documentation

◆ ByteFours() [1/2]

XX::ByteFours::ByteFours ( FoursValue a,
FoursValue b,
FoursValue c,
FoursValue d )

◆ ByteFours() [2/2]

XX::ByteFours::ByteFours ( uint8_t byte = 0)

Member Function Documentation

◆ operator uint8_t()

XX::ByteFours::operator uint8_t ( ) const

◆ toString()

QString XX::ByteFours::toString ( ) const

◆ value()

FoursValue XX::ByteFours::value ( const FoursValue & index) const

◆ operator<< [1/2]

QDebug operator<< ( QDebug stream,
const ByteFours & bf )
friend

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream & out,
const ByteFours & bf )
friend

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