Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Byte Class Reference

#include <bitArray.H>

Public Member Functions

unsigned int read_bit (const unsigned int i) const noexcept
 
void write_bit (const unsigned int i, const unsigned int val) noexcept
 
 Byte () noexcept=default
 
int get_int () const noexcept
 
void set_int (int i) noexcept
 
Byteoperator|= (const Byte &rhs) noexcept
 
Byteoperator&= (const Byte &rhs) noexcept
 
int count_ones () const noexcept
 
int count_zeros () const noexcept
 

Private Attributes

std::uint8_t value = 0
 

Detailed Description

Definition at line 114 of file bitArray.H.

Constructor & Destructor Documentation

◆ Byte()

Aleph::Byte::Byte ( )
defaultnoexcept

Member Function Documentation

◆ count_ones()

int Aleph::Byte::count_ones ( ) const
inlinenoexcept

Definition at line 158 of file bitArray.H.

References value.

Referenced by count_zeros().

◆ count_zeros()

int Aleph::Byte::count_zeros ( ) const
inlinenoexcept

Definition at line 163 of file bitArray.H.

References count_ones().

◆ get_int()

int Aleph::Byte::get_int ( ) const
inlinenoexcept

Definition at line 136 of file bitArray.H.

References value.

◆ operator&=()

Byte & Aleph::Byte::operator&= ( const Byte rhs)
inlinenoexcept

Definition at line 152 of file bitArray.H.

References Aleph::maps(), and value.

◆ operator|=()

Byte & Aleph::Byte::operator|= ( const Byte rhs)
inlinenoexcept

Definition at line 146 of file bitArray.H.

References Aleph::maps(), and value.

◆ read_bit()

unsigned int Aleph::Byte::read_bit ( const unsigned int  i) const
inlinenoexcept

Definition at line 119 of file bitArray.H.

References Aleph::maps(), and value.

Referenced by Aleph::BitArray::BitProxy::operator int(), and Aleph::BitArray::read_bit_ne().

◆ set_int()

void Aleph::Byte::set_int ( int  i)
inlinenoexcept

◆ write_bit()

void Aleph::Byte::write_bit ( const unsigned int  i,
const unsigned int  val 
)
inlinenoexcept

Member Data Documentation

◆ value

std::uint8_t Aleph::Byte::value = 0
private

Definition at line 116 of file bitArray.H.

Referenced by count_ones(), get_int(), operator&=(), operator|=(), read_bit(), and set_int().


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