Template Class ComplexWrapper

Class Documentation

template<typename T>
class ComplexWrapper

Public Functions

inline ComplexWrapper(T re = 0, T im = 0)
inline ComplexWrapper(std::complex<T> c)
inline ComplexWrapper(const std::string &s)
inline T real() const
inline T imag() const
inline void real(T re)
inline void imag(T im)
inline ~ComplexWrapper()
inline ComplexWrapper<T> &operator=(const ComplexWrapper<T> &c) = default
template<std::floating_point S>
inline operator S() const noexcept
template<std::integral S>
inline operator S() const noexcept

Friends

inline friend ComplexWrapper<T> &operator~(ComplexWrapper<T> &lhs)
inline friend ComplexWrapper operator+=(ComplexWrapper &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator-=(ComplexWrapper &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator+(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator+(ComplexWrapper const &lhs, T const &rhs)
inline friend ComplexWrapper operator+(T const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator+(ComplexWrapper const &lhs)
inline friend ComplexWrapper operator-(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator-(ComplexWrapper const &lhs)
inline friend ComplexWrapper operator-(ComplexWrapper const &lhs, T const &rhs)
inline friend ComplexWrapper operator*(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator*(ComplexWrapper const &lhs, T const &rhs)
inline friend ComplexWrapper operator*(T const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator/(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper operator/(ComplexWrapper const &lhs, T const &rhs)
inline friend ComplexWrapper operator/(T const &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper &operator*=(ComplexWrapper &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper &operator*=(ComplexWrapper &lhs, T const &rhs)
inline friend ComplexWrapper &operator*=(T &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper &operator/=(ComplexWrapper &lhs, ComplexWrapper const &rhs)
inline friend ComplexWrapper &operator/=(ComplexWrapper &lhs, T const &rhs)
inline friend ComplexWrapper &operator/=(T &lhs, ComplexWrapper const &rhs)
inline friend bool operator==(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend bool operator!=(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend bool operator>(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend bool operator<(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend bool operator>=(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend bool operator<=(ComplexWrapper const &lhs, ComplexWrapper const &rhs)
inline friend void operator<<(std::ostream &s, ComplexWrapper<T> &lhs)
inline friend void operator>>(std::istringstream &s, ComplexWrapper<T> &rhs)