APM:Libraries
Public Member Functions | Private Attributes | List of all members
Bitmask Class Reference

#include <Bitmask.h>

Public Member Functions

 Bitmask (uint16_t num_bits)
 
 ~Bitmask (void)
 
void set (uint16_t bit)
 
void setall (void)
 
void clear (uint16_t bit)
 
void clearall (void)
 
bool get (uint16_t bit) const
 
bool empty (void) const
 
uint16_t count () const
 
uint16_t size () const
 

Private Attributes

uint16_t numbits
 
uint16_t numwords
 
uint32_t * bits
 

Detailed Description

Definition at line 21 of file Bitmask.h.

Constructor & Destructor Documentation

◆ Bitmask()

Bitmask::Bitmask ( uint16_t  num_bits)
inline

Definition at line 23 of file Bitmask.h.

Here is the call graph for this function:

◆ ~Bitmask()

Bitmask::~Bitmask ( void  )
inline

Definition at line 29 of file Bitmask.h.

Member Function Documentation

◆ clear()

void Bitmask::clear ( uint16_t  bit)
inline

Definition at line 56 of file Bitmask.h.

Referenced by ChibiOS::Storage::_flash_write(), PX4::PX4Storage::_mtd_load(), VRBRAIN::VRBRAINStorage::_mtd_load(), PX4::PX4Storage::_mtd_write(), VRBRAIN::VRBRAINStorage::_mtd_write(), and ChibiOS::Storage::_timer_tick().

Here is the caller graph for this function:

◆ clearall()

void Bitmask::clearall ( void  )
inline

Definition at line 63 of file Bitmask.h.

Referenced by PX4::PX4Storage::_storage_open(), VRBRAIN::VRBRAINStorage::_storage_open(), ChibiOS::Storage::_storage_open(), and Bitmask().

Here is the caller graph for this function:

◆ count()

uint16_t Bitmask::count ( ) const
inline

Definition at line 85 of file Bitmask.h.

◆ empty()

bool Bitmask::empty ( void  ) const
inline

Definition at line 75 of file Bitmask.h.

Referenced by PX4::PX4Storage::_timer_tick(), VRBRAIN::VRBRAINStorage::_timer_tick(), and ChibiOS::Storage::_timer_tick().

Here is the caller graph for this function:

◆ get()

bool Bitmask::get ( uint16_t  bit) const
inline

Definition at line 68 of file Bitmask.h.

Referenced by PX4::PX4Storage::_timer_tick(), VRBRAIN::VRBRAINStorage::_timer_tick(), and ChibiOS::Storage::_timer_tick().

Here is the caller graph for this function:

◆ set()

void Bitmask::set ( uint16_t  bit)
inline

Definition at line 34 of file Bitmask.h.

Referenced by PX4::PX4Storage::_mark_dirty(), VRBRAIN::VRBRAINStorage::_mark_dirty(), ChibiOS::Storage::_mark_dirty(), PX4::PX4Storage::_mtd_write(), and VRBRAIN::VRBRAINStorage::_mtd_write().

Here is the caller graph for this function:

◆ setall()

void Bitmask::setall ( void  )
inline

Definition at line 45 of file Bitmask.h.

◆ size()

uint16_t Bitmask::size ( ) const
inline

Definition at line 100 of file Bitmask.h.

Member Data Documentation

◆ bits

uint32_t* Bitmask::bits
private

Definition at line 107 of file Bitmask.h.

Referenced by Bitmask(), clear(), clearall(), count(), empty(), get(), set(), setall(), and ~Bitmask().

◆ numbits

uint16_t Bitmask::numbits
private

Definition at line 105 of file Bitmask.h.

Referenced by set(), setall(), and size().

◆ numwords

uint16_t Bitmask::numwords
private

Definition at line 106 of file Bitmask.h.

Referenced by Bitmask(), clearall(), count(), empty(), and setall().


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