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

 complex (const complex< float > &)
 
 complex (const complex< double > &)
 
 complex (const _Ty &_Realval=0, const _Ty &_Imagval=0)
 
 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 >
 _Complex_base (const long double &_Realval, const long double &_Imagval)
 
long double real (const long double &_Right)
 
long double real () const
 
long double imag (const long double &_Right)
 
long double imag () const
 

Additional Inherited Members

- Protected Member Functions inherited from _Complex_base< long double, _Lcomplex_value >
void _Add (const complex< _Other > &_Right)
 
void _Sub (const complex< _Other > &_Right)
 
void _Mul (const complex< _Other > &_Right)
 
void _Div (const complex< _Other > &_Right)
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

complex< long double >::complex ( const complex< float > &  _Right)
inline
1121  (_Ty)_Right.real(), (_Ty)_Right.imag())
1122  { // construct complex<long double> from complex<float>
1123  }
_Ty imag(const _Ty &_Right)
Definition: complex:610
_Ty real(const _Ty &_Right)
Definition: complex:605
long double _Ty
Definition: complex:975
complex< long double >::complex ( const complex< double > &  _Right)
inline
1128  (_Ty)_Right.real(), (_Ty)_Right.imag())
1129  { // construct complex<long double> from complex<double>
1130  }
_Ty imag(const _Ty &_Right)
Definition: complex:610
_Ty real(const _Ty &_Right)
Definition: complex:605
long double _Ty
Definition: complex:975
complex< long double >::complex ( const _Ty _Realval = 0,
const _Ty _Imagval = 0 
)
inline
985  : _Complex_base<long double, _Lcomplex_value>(_Realval, _Imagval)
986  { // construct from long double components
987  }
complex< long double >::complex ( const _Lcomplex_value _Right)
inline
991  _Right._Val[_IM])
992  { // construct from long double complex value
993  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

_Myt& complex< long double >::operator*= ( const _Ty _Right)
inline
1015  { // multiply by real
1016  _Val[_RE] = _Val[_RE] * _Right;
1017  _Val[_IM] = _Val[_IM] * _Right;
1018  return (*this);
1019  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
_Myt& complex< long double >::operator*= ( const _Myt _Right)
inline
1041  { // multiply by other complex
1042  this->_Mul(_Right);
1043  return (*this);
1044  }
const _Ty & _Right
Definition: algorithm:4087
void _Mul(const complex< _Other > &_Right)
Definition: complex:641
template<class _Other >
_Myt& complex< long double >::operator*= ( const complex< _Other > &  _Right)
inline
1076  { // multiply by other complex
1077  this->_Mul(_Right);
1078  return (*this);
1079  }
void _Mul(const complex< _Other > &_Right)
Definition: complex:641
_Myt& complex< long double >::operator+= ( const _Ty _Right)
inline
1003  { // add real
1004  _Val[_RE] = _Val[_RE] + _Right;
1005  return (*this);
1006  }
#define _RE
Definition: complex:40
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
_Myt& complex< long double >::operator+= ( const _Myt _Right)
inline
1029  { // add other complex
1030  this->_Add(_Right);
1031  return (*this);
1032  }
void _Add(const complex< _Other > &_Right)
Definition: complex:627
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< long double >::operator+= ( const complex< _Other > &  _Right)
inline
1062  { // add other complex
1063  this->_Add(_Right);
1064  return (*this);
1065  }
void _Add(const complex< _Other > &_Right)
Definition: complex:627
_Myt& complex< long double >::operator-= ( const _Ty _Right)
inline
1009  { // subtract real
1010  _Val[_RE] = _Val[_RE] - _Right;
1011  return (*this);
1012  }
#define _RE
Definition: complex:40
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
_Myt& complex< long double >::operator-= ( const _Myt _Right)
inline
1035  { // subtract other complex
1036  this->_Sub(_Right);
1037  return (*this);
1038  }
void _Sub(const complex< _Other > &_Right)
Definition: complex:634
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< long double >::operator-= ( const complex< _Other > &  _Right)
inline
1069  { // subtract other complex
1070  this->_Sub(_Right);
1071  return (*this);
1072  }
void _Sub(const complex< _Other > &_Right)
Definition: complex:634
_Myt& complex< long double >::operator/= ( const _Ty _Right)
inline
1022  { // divide by real
1023  _Val[_RE] = _Val[_RE] / _Right;
1024  _Val[_IM] = _Val[_IM] / _Right;
1025  return (*this);
1026  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
_Myt& complex< long double >::operator/= ( const _Myt _Right)
inline
1047  { // divide by other complex
1048  this->_Div(_Right);
1049  return (*this);
1050  }
void _Div(const complex< _Other > &_Right)
Definition: complex:654
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< long double >::operator/= ( const complex< _Other > &  _Right)
inline
1083  { // divide by other complex
1084  this->_Div(_Right);
1085  return (*this);
1086  }
void _Div(const complex< _Other > &_Right)
Definition: complex:654
complex<_Ty>& complex< long double >::operator= ( const _Ty _Right)
inline
996  { // assign real
997  _Val[_RE] = _Right;
998  _Val[_IM] = 0;
999  return (*this);
1000  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< long double >::operator= ( const complex< _Other > &  _Right)
inline
1054  { // assign another complex
1055  _Val[_RE] = (_Ty)_Right._Val[_RE];
1056  _Val[_IM] = (_Ty)_Right._Val[_IM];
1057  return (*this);
1058  }
_Ty _Val[2]
Definition: complex:585
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
_FwdIt const _Ty _Val
Definition: algorithm:1938
long double _Ty
Definition: complex:975

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