OpenFOAM logo
Open Source CFD Toolkit

complex Class Reference

Collaboration diagram for complex:

Collaboration graph
[legend]
List of all members.

Public Types

typedef complex cmptType
 Component type.

Public Member Functions

 complex ()
 Construct null.
 complex (const scalar Re, const scalar Im)
 Construct given real and imaginary parts.
 complex (Istream &)
 Construct from Istream.
scalar Re () const
scalar Im () const
scalar & Re ()
scalar & Im ()
complex conjugate () const
void operator= (const complex &)
void operator+= (const complex &)
void operator-= (const complex &)
void operator *= (const complex &)
void operator/= (const complex &)
void operator= (const scalar)
void operator+= (const scalar)
void operator-= (const scalar)
void operator *= (const scalar)
void operator/= (const scalar)
complex operator! () const
bool operator== (const complex &) const
bool operator!= (const complex &) const

Static Public Attributes

const char *const typeName
const complex zero
const complex one

Friends

scalar magSqr (const complex &c)
complex sqr (const complex &c)
scalar mag (const complex &c)
const complexmax (const complex &c1, const complex &c2)
const complexmin (const complex &c1, const complex &c2)
complex limit (const complex &c1, const complex &c2)
const complexsum (const complex &c)
complex operator+ (const complex &, const complex &)
complex operator- (const complex &)
complex operator- (const complex &, const complex &)
complex operator * (const complex &, const complex &)
complex operator/ (const complex &, const complex &)
complex operator * (const scalar, const complex &)
complex operator * (const complex &, const scalar)
complex operator/ (const complex &, const scalar)
complex operator/ (const scalar, const complex &)
Istreamoperator>> (Istream &is, complex &)
Ostreamoperator<< (Ostream &os, const complex &C)

Member Typedef Documentation

typedef complex cmptType
 

Component type.

Definition at line 70 of file complex.H.


Constructor & Destructor Documentation

complex  )  [inline]
 

Construct null.

Definition at line 45 of file complexI.H.

complex const scalar  Re,
const scalar  Im
[inline]
 

Construct given real and imaginary parts.

Definition at line 49 of file complexI.H.

complex Istream  ) 
 

Construct from Istream.


Member Function Documentation

complex conjugate  )  const [inline]
 

Definition at line 82 of file complexI.H.

References complex::im, and complex::re.

Referenced by complex::operator/=().

scalar & Im  )  [inline]
 

Definition at line 76 of file complexI.H.

scalar Im  )  const [inline]
 

Definition at line 64 of file complexI.H.

void operator *= const   scalar  )  [inline]
 

Definition at line 142 of file complexI.H.

void operator *= const complex  )  [inline]
 

Definition at line 111 of file complexI.H.

complex operator!  )  const [inline]
 

Definition at line 156 of file complexI.H.

bool operator!= const complex  )  const [inline]
 

Definition at line 168 of file complexI.H.

References complex::im, and complex::re.

void operator+= const   scalar  )  [inline]
 

Definition at line 130 of file complexI.H.

void operator+= const complex  )  [inline]
 

Definition at line 97 of file complexI.H.

References complex::im, and complex::re.

void operator-= const   scalar  )  [inline]
 

Definition at line 136 of file complexI.H.

void operator-= const complex  )  [inline]
 

Definition at line 104 of file complexI.H.

void operator/= const   scalar  )  [inline]
 

Definition at line 149 of file complexI.H.

References complex::conjugate().

Here is the call graph for this function:

void operator/= const complex  )  [inline]
 

Definition at line 117 of file complexI.H.

void operator= const   scalar  )  [inline]
 

Definition at line 123 of file complexI.H.

void operator= const complex  )  [inline]
 

Definition at line 90 of file complexI.H.

References complex::im, and complex::re.

bool operator== const complex  )  const [inline]
 

Definition at line 162 of file complexI.H.

scalar & Re  )  [inline]
 

Definition at line 70 of file complexI.H.

scalar Re  )  const [inline]
 

Definition at line 58 of file complexI.H.


Friends And Related Function Documentation

complex limit const complex c1,
const complex c2
[friend]
 

Definition at line 221 of file complexI.H.

scalar mag const complex c  )  [friend]
 

Definition at line 189 of file complexI.H.

scalar magSqr const complex c  )  [friend]
 

Definition at line 177 of file complexI.H.

const complex& max const complex c1,
const complex c2
[friend]
 

Definition at line 195 of file complexI.H.

const complex& min const complex c1,
const complex c2
[friend]
 

Definition at line 208 of file complexI.H.

complex operator * const complex c,
const   scalar
[friend]
 

Definition at line 302 of file complexI.H.

complex operator * const   scalar,
const complex c
[friend]
 

Definition at line 296 of file complexI.H.

complex operator * const complex c1,
const complex c2
[friend]
 

Definition at line 274 of file complexI.H.

complex operator+ const complex c1,
const complex c2
[friend]
 

Definition at line 244 of file complexI.H.

complex operator- const complex c1,
const complex c2
[friend]
 

Definition at line 264 of file complexI.H.

complex operator- const complex c  )  [friend]
 

Definition at line 254 of file complexI.H.

complex operator/ const   scalar,
const complex c
[friend]
 

Definition at line 314 of file complexI.H.

complex operator/ const complex c,
const   scalar
[friend]
 

Definition at line 308 of file complexI.H.

complex operator/ const complex c1,
const complex c2
[friend]
 

Definition at line 284 of file complexI.H.

Ostream& operator<< Ostream os,
const complex C
[friend]
 

Istream& operator>> Istream is,
complex
[friend]
 

complex sqr const complex c  )  [friend]
 

Definition at line 183 of file complexI.H.

const complex& sum const complex c  )  [friend]
 

Definition at line 227 of file complexI.H.


Member Data Documentation

const complex one [static]
 

Definition at line 78 of file complex.H.

const char* const typeName [static]
 

Definition at line 75 of file complex.H.

const complex zero [static]
 

Definition at line 77 of file complex.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org