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.
Public Member Functions | Public Attributes | List of all members
BitfieldIndex< size > Struct Template Reference

#include <bitfieldindex.h>

Public Member Functions

 BitfieldIndex ()
 
 BitfieldIndex (int i)
 
BitfieldIndexoperator= (const BitfieldIndex &rhs)
 
BitfieldIndexoperator= (const int &rhi)
 
BitfieldIndexoperator++ ()
 
BitfieldIndex operator++ (int)
 
BitfieldIndexoperator+= (const BitfieldIndex &b)
 
BitfieldIndexoperator-= (const BitfieldIndex &b)
 
BitfieldIndexoperator+= (int i)
 
BitfieldIndexoperator-= (int i)
 
BitfieldIndex operator+ (const BitfieldIndex &b) const
 
BitfieldIndex operator- (const BitfieldIndex &b) const
 
BitfieldIndex operator+ (int i) const
 
BitfieldIndex operator- (int i) const
 
 operator int () const
 

Public Attributes

uint32_t v: size
 

Detailed Description

template<unsigned int size>
struct BitfieldIndex< size >

Definition at line 25 of file bitfieldindex.h.

Constructor & Destructor Documentation

◆ BitfieldIndex() [1/2]

template<unsigned int size>
BitfieldIndex< size >::BitfieldIndex ( )
inline

Definition at line 29 of file bitfieldindex.h.

29 : v(0) {}

◆ BitfieldIndex() [2/2]

template<unsigned int size>
BitfieldIndex< size >::BitfieldIndex ( int  i)
inline

Definition at line 30 of file bitfieldindex.h.

References i, and BitfieldIndex< size >::v.

30 { v = i; }
int32_t i
Definition: decimators.h:244

Member Function Documentation

◆ operator int()

template<unsigned int size>
BitfieldIndex< size >::operator int ( ) const
inline

Definition at line 45 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

45 { return v; }

◆ operator+() [1/2]

template<unsigned int size>
BitfieldIndex BitfieldIndex< size >::operator+ ( const BitfieldIndex< size > &  b) const
inline

Definition at line 40 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

40 { BitfieldIndex x(*this); x.v += b.v; return x; }

◆ operator+() [2/2]

template<unsigned int size>
BitfieldIndex BitfieldIndex< size >::operator+ ( int  i) const
inline

Definition at line 42 of file bitfieldindex.h.

References i, and BitfieldIndex< size >::v.

42 { BitfieldIndex x(*this); x.v += i; return x; }
int32_t i
Definition: decimators.h:244

◆ operator++() [1/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator++ ( )
inline

Definition at line 34 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

34 { v++; return *this; }

◆ operator++() [2/2]

template<unsigned int size>
BitfieldIndex BitfieldIndex< size >::operator++ ( int  )
inline

Definition at line 35 of file bitfieldindex.h.

35 { BitfieldIndex x(*this); ++(*this); return x; }

◆ operator+=() [1/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator+= ( const BitfieldIndex< size > &  b)
inline

Definition at line 36 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

36 { v += b.v; return *this; }

◆ operator+=() [2/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator+= ( int  i)
inline

Definition at line 38 of file bitfieldindex.h.

References i, and BitfieldIndex< size >::v.

38 { v += i; return *this; }
int32_t i
Definition: decimators.h:244

◆ operator-() [1/2]

template<unsigned int size>
BitfieldIndex BitfieldIndex< size >::operator- ( const BitfieldIndex< size > &  b) const
inline

Definition at line 41 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

41 { BitfieldIndex x(*this); x.v -= b.v; return x; }

◆ operator-() [2/2]

template<unsigned int size>
BitfieldIndex BitfieldIndex< size >::operator- ( int  i) const
inline

Definition at line 43 of file bitfieldindex.h.

References i, and BitfieldIndex< size >::v.

43 { BitfieldIndex x(*this); x.v -= i; return x; }
int32_t i
Definition: decimators.h:244

◆ operator-=() [1/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator-= ( const BitfieldIndex< size > &  b)
inline

Definition at line 37 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

37 { v -= b.v; return *this; }

◆ operator-=() [2/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator-= ( int  i)
inline

Definition at line 39 of file bitfieldindex.h.

References i, and BitfieldIndex< size >::v.

39 { v -= i; return *this; }
int32_t i
Definition: decimators.h:244

◆ operator=() [1/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator= ( const BitfieldIndex< size > &  rhs)
inline

Definition at line 32 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

32 { v = rhs.v; return *this; }

◆ operator=() [2/2]

template<unsigned int size>
BitfieldIndex& BitfieldIndex< size >::operator= ( const int &  rhi)
inline

Definition at line 33 of file bitfieldindex.h.

References BitfieldIndex< size >::v.

33 { v = rhi; return *this; }

Member Data Documentation

◆ v

template<unsigned int size>
uint32_t BitfieldIndex< size >::v

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