Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

Complex Class Reference

class for complex numbers. More...

#include <Complex.h>

List of all members.

Public Methods

real Re () const
real Im () const
 Complex ()
 Complex (const Complex &y)
 Complex (real r, real i=0)
 ~Complex ()
Complex& operator= (const Complex &y)
Complex& operator+= (const Complex &y)
Complex& operator+= (real y)
Complex& operator-= (const Complex &y)
Complex& operator-= (real y)
Complex& operator *= (const Complex &y)
Complex& operator *= (real y)
Complex& operator/= (const Complex &y)
Complex& operator/= (real y)


Detailed Description

class for complex numbers.

NAME: Complex - class for complex numbers

DESCRIPTION:

The class is based on the Complex class in the GNU C++ library, but the present version contains additional functionality and some of the syntax, names and design have been changed. We refer to the copyright notice at the top of the header file.


Constructor & Destructor Documentation

Complex::Complex ( ) [inline]
 

Three constructors are available: One constructor that takes no argument, one that takes another Complex object, initializing the new objects based on the supplied object, and one that takes a real and an imaginary value.

Complex::Complex ( const Complex & y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::Complex ( real r,
real i = 0 ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::~Complex ( ) [inline]
 


Member Function Documentation

real Complex::Im ( ) const [inline]
 

real Complex::Re ( ) const [inline]
 

Complex::Complex & Complex::operator *= ( real y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::Complex & Complex::operator *= ( const Complex & y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::Complex & Complex::operator+= ( real y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::Complex & Complex::operator+= ( const Complex & y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::Complex & Complex::operator-= ( real y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex::Complex & Complex::operator-= ( const Complex & y ) [inline]
 

See documentation of one of the overloaded constructor.

Complex & Complex::operator/= ( real y )
 

Complex & Complex::operator/= ( const Complex & y )
 

Complex::Complex & Complex::operator= ( const Complex & y ) [inline]
 

See documentation of one of the overloaded constructor.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.