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
FSample Struct Reference

#include <dsptypes.h>

Public Member Functions

 FSample ()
 
 FSample (Real real)
 
 FSample (Real real, Real imag)
 
 FSample (const FSample &other)
 
FSampleoperator= (const FSample &other)
 
FSampleoperator+= (const FSample &other)
 
FSampleoperator-= (const FSample &other)
 
FSampleoperator/= (const Real &divisor)
 
void setReal (Real v)
 
void setImag (Real v)
 
Real real () const
 
Real imag () const
 

Public Attributes

Real m_real
 
Real m_imag
 

Detailed Description

Definition at line 68 of file dsptypes.h.

Constructor & Destructor Documentation

◆ FSample() [1/4]

FSample::FSample ( )
inline

Definition at line 70 of file dsptypes.h.

70 : m_real(0), m_imag(0) {}
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ FSample() [2/4]

FSample::FSample ( Real  real)
inline

Definition at line 71 of file dsptypes.h.

71 : m_real(real), m_imag(0) {}
Real real() const
Definition: dsptypes.h:83
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ FSample() [3/4]

FSample::FSample ( Real  real,
Real  imag 
)
inline

Definition at line 72 of file dsptypes.h.

72 : m_real(real), m_imag(imag) {}
Real real() const
Definition: dsptypes.h:83
Real imag() const
Definition: dsptypes.h:84
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ FSample() [4/4]

FSample::FSample ( const FSample other)
inline

Definition at line 73 of file dsptypes.h.

73 : m_real(other.m_real), m_imag(other.m_imag) {}
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

Member Function Documentation

◆ imag()

Real FSample::imag ( ) const
inline

◆ operator+=()

FSample& FSample::operator+= ( const FSample other)
inline

Definition at line 76 of file dsptypes.h.

References Sample::m_imag, m_imag, Sample::m_real, and m_real.

76 { m_real += other.m_real; m_imag += other.m_imag; return *this; }
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ operator-=()

FSample& FSample::operator-= ( const FSample other)
inline

Definition at line 77 of file dsptypes.h.

References Sample::m_imag, m_imag, Sample::m_real, and m_real.

77 { m_real -= other.m_real; m_imag -= other.m_imag; return *this; }
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ operator/=()

FSample& FSample::operator/= ( const Real divisor)
inline

Definition at line 78 of file dsptypes.h.

References Sample::m_imag, and Sample::m_real.

78 { m_real /= divisor; m_imag /= divisor; return *this; }
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ operator=()

FSample& FSample::operator= ( const FSample other)
inline

Definition at line 74 of file dsptypes.h.

References Sample::m_imag, m_imag, Sample::m_real, and m_real.

74 { m_real = other.m_real; m_imag = other.m_imag; return *this; }
Real m_real
Definition: dsptypes.h:86
Real m_imag
Definition: dsptypes.h:87

◆ real()

Real FSample::real ( ) const
inline

◆ setImag()

void FSample::setImag ( Real  v)
inline

◆ setReal()

void FSample::setReal ( Real  v)
inline

Member Data Documentation

◆ m_imag

Real FSample::m_imag

Definition at line 87 of file dsptypes.h.

Referenced by operator+=(), operator-=(), and operator=().

◆ m_real

Real FSample::m_real

Definition at line 86 of file dsptypes.h.

Referenced by operator+=(), operator-=(), and operator=().


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