SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Classes | Functions
bitfieldindex.h File Reference
#include <stdint.h>
+ Include dependency graph for bitfieldindex.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BitfieldIndex< size >
 

Functions

template<unsigned int size>
BitfieldIndex< size > operator+ (const BitfieldIndex< size > &a, const BitfieldIndex< size > &b)
 
template<unsigned int size>
BitfieldIndex< size > operator- (const BitfieldIndex< size > &a, const BitfieldIndex< size > &b)
 

Function Documentation

◆ operator+()

template<unsigned int size>
BitfieldIndex<size> operator+ ( const BitfieldIndex< size > &  a,
const BitfieldIndex< size > &  b 
)

Definition at line 49 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

50 {
52  x.v = a.v + b.v;
53  return x;
54 }

◆ operator-()

template<unsigned int size>
BitfieldIndex<size> operator- ( const BitfieldIndex< size > &  a,
const BitfieldIndex< size > &  b 
)

Definition at line 57 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

58 {
60  x.v = a.v - b.v;
61  return x;
62 }