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

Public Types

typedef float _Ty
 
typedef complex< _Ty_Myt
 
- Public Types inherited from _Complex_base< float, _Fcomplex_value >
typedef _Ctraits< float > _Myctraits
 
typedef _Complex_base< float, _Fcomplex_value_Myt
 
typedef float value_type
 

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from _Complex_base< float, _Fcomplex_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< float >::_Myt
typedef float complex< float >::_Ty

Constructor & Destructor Documentation

complex< float >::complex ( const complex< double > &  _Right)
inlineexplicit
1093  (_Ty)_Right.real(), (_Ty)_Right.imag())
1094  { // construct complex<float> from complex<double>
1095  }
_Ty imag(const _Ty &_Right)
Definition: complex:610
_Ty real(const _Ty &_Right)
Definition: complex:605
float _Ty
Definition: complex:717
complex< float >::complex ( const complex< long double > &  _Right)
inlineexplicit
1100  (_Ty)_Right.real(), (_Ty)_Right.imag())
1101  { // construct complex<float> from complex<long double>
1102  }
_Ty imag(const _Ty &_Right)
Definition: complex:610
_Ty real(const _Ty &_Right)
Definition: complex:605
float _Ty
Definition: complex:717
complex< float >::complex ( const _Ty _Realval = 0,
const _Ty _Imagval = 0 
)
inline
727  : _Complex_base<float, _Fcomplex_value>(_Realval, _Imagval)
728  { // construct from float components
729  }
complex< float >::complex ( const _Fcomplex_value _Right)
inline
733  _Right._Val[_IM])
734  { // construct from float complex value
735  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
const _Ty & _Right
Definition: algorithm:4087
complex< float >::complex ( const _Dcomplex_value _Right)
inline
739  _Right._Val[_IM])
740  { // construct from double complex value
741  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
const _Ty & _Right
Definition: algorithm:4087
complex< float >::complex ( const _Lcomplex_value _Right)
inline
745  _Right._Val[_IM])
746  { // construct from long double complex value
747  }
#define _RE
Definition: complex:40
#define _IM
Definition: complex:41
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

_Myt& complex< float >::operator*= ( const _Ty _Right)
inline
769  { // multiply by real
770  _Val[_RE] = _Val[_RE] * _Right;
771  _Val[_IM] = _Val[_IM] * _Right;
772  return (*this);
773  }
#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< float >::operator*= ( const _Myt _Right)
inline
795  { // multiply by other complex
796  this->_Mul(_Right);
797  return (*this);
798  }
const _Ty & _Right
Definition: algorithm:4087
void _Mul(const complex< _Other > &_Right)
Definition: complex:641
template<class _Other >
_Myt& complex< float >::operator*= ( const complex< _Other > &  _Right)
inline
830  { // multiply by other complex
831  this->_Mul(_Right);
832  return (*this);
833  }
void _Mul(const complex< _Other > &_Right)
Definition: complex:641
_Myt& complex< float >::operator+= ( const _Ty _Right)
inline
757  { // add real
758  _Val[_RE] = _Val[_RE] + _Right;
759  return (*this);
760  }
#define _RE
Definition: complex:40
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
_Myt& complex< float >::operator+= ( const _Myt _Right)
inline
783  { // add other complex
784  this->_Add(_Right);
785  return (*this);
786  }
void _Add(const complex< _Other > &_Right)
Definition: complex:627
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< float >::operator+= ( const complex< _Other > &  _Right)
inline
816  { // add other complex
817  this->_Add(_Right);
818  return (*this);
819  }
void _Add(const complex< _Other > &_Right)
Definition: complex:627
_Myt& complex< float >::operator-= ( const _Ty _Right)
inline
763  { // subtract real
764  _Val[_RE] = _Val[_RE] - _Right;
765  return (*this);
766  }
#define _RE
Definition: complex:40
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
_Myt& complex< float >::operator-= ( const _Myt _Right)
inline
789  { // subtract other complex
790  this->_Sub(_Right);
791  return (*this);
792  }
void _Sub(const complex< _Other > &_Right)
Definition: complex:634
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< float >::operator-= ( const complex< _Other > &  _Right)
inline
823  { // subtract other complex
824  this->_Sub(_Right);
825  return (*this);
826  }
void _Sub(const complex< _Other > &_Right)
Definition: complex:634
_Myt& complex< float >::operator/= ( const _Ty _Right)
inline
776  { // divide by real
777  _Val[_RE] = _Val[_RE] / _Right;
778  _Val[_IM] = _Val[_IM] / _Right;
779  return (*this);
780  }
#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< float >::operator/= ( const _Myt _Right)
inline
801  { // divide by other complex
802  this->_Div(_Right);
803  return (*this);
804  }
void _Div(const complex< _Other > &_Right)
Definition: complex:654
const _Ty & _Right
Definition: algorithm:4087
template<class _Other >
_Myt& complex< float >::operator/= ( const complex< _Other > &  _Right)
inline
837  { // divide by other complex
838  this->_Div(_Right);
839  return (*this);
840  }
void _Div(const complex< _Other > &_Right)
Definition: complex:654
complex<_Ty>& complex< float >::operator= ( const _Ty _Right)
inline
750  { // assign real
751  _Val[_RE] = _Right;
752  _Val[_IM] = 0;
753  return (*this);
754  }
#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< float >::operator= ( const complex< _Other > &  _Right)
inline
808  { // assign another complex
809  _Val[_RE] = (_Ty)_Right._Val[_RE];
810  _Val[_IM] = (_Ty)_Right._Val[_IM];
811  return (*this);
812  }
_Ty _Val[2]
Definition: complex:585
#define _RE
Definition: complex:40
float _Ty
Definition: complex:717
#define _IM
Definition: complex:41
_FwdIt const _Ty _Val
Definition: algorithm:1938

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