#include <mn_fast_type.hpp>

Public Member Functions

 basic_fbit ()
 
 basic_fbit (bool b)
 
 basic_fbit (const basic_fbit &b)
 
basic_fbitoperator= (const basic_fbit &other)
 
bool operator== (const basic_fbit &other)
 
bool operator!= (const basic_fbit &other)
 
 operator bool ()
 
void flip ()
 

Public Attributes

union {
unsigned char bit: 1
 
}; 
 

Detailed Description

This class is a fast bit for all fast_types

Constructor & Destructor Documentation

◆ basic_fbit() [1/3]

mn::basic_fbit::basic_fbit ( )
inline

Ctor - set the bit to 0

◆ basic_fbit() [2/3]

mn::basic_fbit::basic_fbit ( bool  b)
inline

Ctor - set the bit

Parameters
bThe state for this bit

◆ basic_fbit() [3/3]

mn::basic_fbit::basic_fbit ( const basic_fbit b)
inline

copyble ctor

Member Function Documentation

◆ flip()

void mn::basic_fbit::flip ( )
inline

Flip the bit from 0 to 1 or from 0 to 1

◆ operator bool()

mn::basic_fbit::operator bool ( )
inline

◆ operator!=()

bool mn::basic_fbit::operator!= ( const basic_fbit other)
inline

◆ operator=()

basic_fbit& mn::basic_fbit::operator= ( const basic_fbit other)
inline

◆ operator==()

bool mn::basic_fbit::operator== ( const basic_fbit other)
inline

Member Data Documentation

◆ 

union { ... }

The fast bit


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