NDDEM
Public Member Functions | Private Attributes | Friends | List of all members
ternary Class Reference

#include <ternary.h>

Public Member Functions

int operator[] (int i)
 
void operator++ (int a[[maybe_unused]])
 
bool operator< (unsigned int n)
 
void set (int i, int v)
 
void set_quat_bit (int n)
 
void reset_quat_bit ()
 
void clear ()
 
uint64_t to_integer ()
 

Private Attributes

uint32_t bit1 =0
 
uint32_t bit2 =0
 
const uint32_t one = 1
 
uint8_t special_quat_bit = 255
 

Friends

std::ostream & operator<< (std::ostream &stream, ternary &t)
 

Member Function Documentation

◆ clear()

void ternary::clear ( )
inline

◆ operator++()

void ternary::operator++ ( int a [[maybe_unused])
inline

◆ operator<()

bool ternary::operator< ( unsigned int  n)
inline

◆ operator[]()

int ternary::operator[] ( int  i)
inline

◆ reset_quat_bit()

void ternary::reset_quat_bit ( )
inline

◆ set()

void ternary::set ( int  i,
int  v 
)
inline

◆ set_quat_bit()

void ternary::set_quat_bit ( int  n)
inline

◆ to_integer()

uint64_t ternary::to_integer ( )
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
ternary t 
)
friend

Member Data Documentation

◆ bit1

uint32_t ternary::bit1 =0
private

◆ bit2

uint32_t ternary::bit2 =0
private

◆ one

const uint32_t ternary::one = 1
private

◆ special_quat_bit

uint8_t ternary::special_quat_bit = 255
private

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