complex< _Tp > Struct Template Reference

#include <_complex.h>

List of all members.

Public Types

typedef _Tp value_type
typedef complex< _Tp > _Self

Public Member Functions

 complex ()
 complex (const value_type &__x)
 complex (const value_type &__x, const value_type &__y)
 complex (const _Self &__z)
_Selfoperator= (const _Self &__z)
value_type real () const
value_type imag () const
_Selfoperator= (const value_type &__x)
_Selfoperator+= (const value_type &__x)
_Selfoperator-= (const value_type &__x)
_Selfoperator *= (const value_type &__x)
_Selfoperator/= (const value_type &__x)
_Selfoperator+= (const _Self &__z)
_Selfoperator-= (const _Self &__z)
_Selfoperator *= (const _Self &__z)
_Selfoperator/= (const _Self &__z)

Static Public Member Functions

static void _STLP_CALL _div (const value_type &__z1_r, const value_type &__z1_i, const value_type &__z2_r, const value_type &__z2_i, value_type &__res_r, value_type &__res_i)
static void _STLP_CALL _div (const value_type &__z1_r, const value_type &__z2_r, const value_type &__z2_i, value_type &__res_r, value_type &__res_i)

Public Attributes

value_type _M_re
value_type _M_im


Detailed Description

template<class _Tp>
struct complex< _Tp >

Definition at line 47 of file _complex.h.


Member Typedef Documentation

template<class _Tp>
typedef _Tp complex< _Tp >::value_type

Definition at line 48 of file _complex.h.

template<class _Tp>
typedef complex<_Tp> complex< _Tp >::_Self

Definition at line 49 of file _complex.h.


Constructor & Destructor Documentation

template<class _Tp>
complex< _Tp >::complex (  )  [inline]

Definition at line 52 of file _complex.h.

template<class _Tp>
complex< _Tp >::complex ( const value_type __x  )  [inline]

Definition at line 53 of file _complex.h.

template<class _Tp>
complex< _Tp >::complex ( const value_type __x,
const value_type __y 
) [inline]

Definition at line 55 of file _complex.h.

template<class _Tp>
complex< _Tp >::complex ( const _Self __z  )  [inline]

Definition at line 57 of file _complex.h.


Member Function Documentation

template<class _Tp>
_Self& complex< _Tp >::operator= ( const _Self __z  )  [inline]

Definition at line 60 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
value_type complex< _Tp >::real (  )  const [inline]

Definition at line 80 of file _complex.h.

References complex< _Tp >::_M_re.

Referenced by abs(), arg(), and polar().

template<class _Tp>
value_type complex< _Tp >::imag (  )  const [inline]

Definition at line 81 of file _complex.h.

References complex< _Tp >::_M_im.

Referenced by abs(), arg(), and polar().

template<class _Tp>
_Self& complex< _Tp >::operator= ( const value_type __x  )  [inline]

Definition at line 85 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator+= ( const value_type __x  )  [inline]

Definition at line 90 of file _complex.h.

References complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator-= ( const value_type __x  )  [inline]

Definition at line 94 of file _complex.h.

References complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator *= ( const value_type __x  )  [inline]

Definition at line 98 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator/= ( const value_type __x  )  [inline]

Definition at line 103 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
static void _STLP_CALL complex< _Tp >::_div ( const value_type __z1_r,
const value_type __z1_i,
const value_type __z2_r,
const value_type __z2_i,
value_type __res_r,
value_type __res_i 
) [static]

template<class _Tp>
static void _STLP_CALL complex< _Tp >::_div ( const value_type __z1_r,
const value_type __z2_r,
const value_type __z2_i,
value_type __res_r,
value_type __res_i 
) [static]

template<class _Tp>
_Self& complex< _Tp >::operator+= ( const _Self __z  )  [inline]

Definition at line 151 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator-= ( const _Self __z  )  [inline]

Definition at line 157 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator *= ( const _Self __z  )  [inline]

Definition at line 163 of file _complex.h.

References complex< _Tp >::_M_im, and complex< _Tp >::_M_re.

template<class _Tp>
_Self& complex< _Tp >::operator/= ( const _Self __z  )  [inline]

Definition at line 171 of file _complex.h.

References complex< _Tp >::_div(), complex< _Tp >::_M_im, and complex< _Tp >::_M_re.


Member Data Documentation


The documentation for this struct was generated from the following file:
  • /home/ntakagi/work/STLport-5.1.5/stlport/stl/_complex.h



Generated on Mon Mar 10 15:32:59 2008 by  doxygen 1.5.1