STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
complex< long double > Class Template Reference
Inheritance diagram for complex< long double >:
_Complex_base< long double, _Lcomplex_value >

Public Types

typedef long double _Ty
 
typedef complex< _Ty_Myt
 
- Public Types inherited from _Complex_base< long double, _Lcomplex_value >
typedef _Ctraits< long double > _Myctraits
 
typedef _Complex_base< long double, _Lcomplex_value_Myt
 
typedef long double value_type
 

Public Member Functions

constexpr complex (const complex< float > &)
 
constexpr complex (const complex< double > &)
 
constexpr complex (const _Ty &_Realval=0, const _Ty &_Imagval=0)
 
constexpr complex (const _Lcomplex_value &_Right)
 
complex< _Ty > & operator= (const _Ty &_Right)
 
_Mytoperator+= (const _Ty &_Right)
 
_Mytoperator-= (const _Ty &_Right)
 
_Mytoperator*= (const _Ty &_Right)
 
_Mytoperator/= (const _Ty &_Right)
 
_Mytoperator+= (const _Myt &_Right)
 
_Mytoperator-= (const _Myt &_Right)
 
_Mytoperator*= (const _Myt &_Right)
 
_Mytoperator/= (const _Myt &_Right)
 
template<class _Other >
_Mytoperator= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator+= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator-= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator*= (const complex< _Other > &_Right)
 
template<class _Other >
_Mytoperator/= (const complex< _Other > &_Right)
 
- Public Member Functions inherited from _Complex_base< long double, _Lcomplex_value >
constexpr _Complex_base (const long double &_Realval, const long double &_Imagval)
 

Member Typedef Documentation

typedef complex<_Ty> complex< long double >::_Myt
typedef long double complex< long double >::_Ty

Constructor & Destructor Documentation

constexpr complex< long double >::complex ( const complex< float > &  _Right)
inline
1117  (_Ty)_Right.real(), (_Ty)_Right.imag())
1118  { // construct complex<long double> from complex<float>
1119  }
long double _Ty
Definition: complex:971
constexpr complex< long double >::complex ( const complex< double > &  _Right)
inline
1124  (_Ty)_Right.real(), (_Ty)_Right.imag())
1125  { // construct complex<long double> from complex<double>
1126  }
long double _Ty
Definition: complex:971
constexpr complex< long double >::complex ( const _Ty _Realval = 0,
const _Ty _Imagval = 0 
)
inline
981  : _Complex_base<long double, _Lcomplex_value>(_Realval, _Imagval)
982  { // construct from long double components
983  }
constexpr complex< long double >::complex ( const _Lcomplex_value _Right)
inline
987  _Right._Val[_IM])
988  { // construct from long double complex value
989  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
constexpr const _Ty &() _Right
Definition: algorithm:3723

Member Function Documentation

_Myt& complex< long double >::operator*= ( const _Ty _Right)
inline
1011  { // multiply by real
1012  _Val[_RE] = _Val[_RE] * _Right;
1013  _Val[_IM] = _Val[_IM] * _Right;
1014  return (*this);
1015  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< long double >::operator*= ( const _Myt _Right)
inline
1037  { // multiply by other complex
1038  this->_Mul(_Right);
1039  return (*this);
1040  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< long double >::operator*= ( const complex< _Other > &  _Right)
inline
1072  { // multiply by other complex
1073  this->_Mul(_Right);
1074  return (*this);
1075  }
_Myt& complex< long double >::operator+= ( const _Ty _Right)
inline
999  { // add real
1000  _Val[_RE] = _Val[_RE] + _Right;
1001  return (*this);
1002  }
#define _RE
Definition: complex:37
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< long double >::operator+= ( const _Myt _Right)
inline
1025  { // add other complex
1026  this->_Add(_Right);
1027  return (*this);
1028  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< long double >::operator+= ( const complex< _Other > &  _Right)
inline
1058  { // add other complex
1059  this->_Add(_Right);
1060  return (*this);
1061  }
_Myt& complex< long double >::operator-= ( const _Ty _Right)
inline
1005  { // subtract real
1006  _Val[_RE] = _Val[_RE] - _Right;
1007  return (*this);
1008  }
#define _RE
Definition: complex:37
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< long double >::operator-= ( const _Myt _Right)
inline
1031  { // subtract other complex
1032  this->_Sub(_Right);
1033  return (*this);
1034  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< long double >::operator-= ( const complex< _Other > &  _Right)
inline
1065  { // subtract other complex
1066  this->_Sub(_Right);
1067  return (*this);
1068  }
_Myt& complex< long double >::operator/= ( const _Ty _Right)
inline
1018  { // divide by real
1019  _Val[_RE] = _Val[_RE] / _Right;
1020  _Val[_IM] = _Val[_IM] / _Right;
1021  return (*this);
1022  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
_Myt& complex< long double >::operator/= ( const _Myt _Right)
inline
1043  { // divide by other complex
1044  this->_Div(_Right);
1045  return (*this);
1046  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< long double >::operator/= ( const complex< _Other > &  _Right)
inline
1079  { // divide by other complex
1080  this->_Div(_Right);
1081  return (*this);
1082  }
complex<_Ty>& complex< long double >::operator= ( const _Ty _Right)
inline
992  { // assign real
993  _Val[_RE] = _Right;
994  _Val[_IM] = 0;
995  return (*this);
996  }
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Other >
_Myt& complex< long double >::operator= ( const complex< _Other > &  _Right)
inline
1050  { // assign another complex
1051  _Val[_RE] = (_Ty)_Right._Val[_RE];
1052  _Val[_IM] = (_Ty)_Right._Val[_IM];
1053  return (*this);
1054  }
_Ty _Val[2]
Definition: complex:582
#define _RE
Definition: complex:37
#define _IM
Definition: complex:38
_FwdIt const _Ty _Val
Definition: algorithm:1938
long double _Ty
Definition: complex:971

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