OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

complex Class Reference

Collaboration diagram for complex:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 61 of file complex.H.


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

static const char *const typeName
static const complex zero
static const complex one

Friends

scalar magSqr (const complex &c)
complex sqr (const complex &c)
scalar mag (const complex &c)
const complex & max (const complex &c1, const complex &c2)
const complex & min (const complex &c1, const complex &c2)
complex limit (const complex &c1, const complex &c2)
const complex & sum (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 &)
Istream & operator>> (Istream &is, complex &)
Ostream & operator<< (Ostream &os, const complex &C)

Member Typedef Documentation

typedef complex cmptType

Component type.

Definition at line 71 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

scalar Re (  )  const [inline]

Definition at line 58 of file complexI.H.

scalar Im (  )  const [inline]

Definition at line 64 of file complexI.H.

scalar & Re (  )  [inline]

Definition at line 70 of file complexI.H.

scalar & Im (  )  [inline]

Definition at line 76 of file complexI.H.

complex conjugate (  )  const [inline]

Definition at line 82 of file complexI.H.

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

Referenced by complex::operator/=().

Here is the caller graph for this function:

void operator= ( const complex &   )  [inline]

Definition at line 90 of file complexI.H.

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

void operator+= ( const complex &   )  [inline]

Definition at line 97 of file complexI.H.

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

void operator-= ( const complex &   )  [inline]

Definition at line 104 of file complexI.H.

void operator *= ( const complex &   )  [inline]

Definition at line 111 of file complexI.H.

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   scalar  )  [inline]

Definition at line 130 of file complexI.H.

void operator-= ( const   scalar  )  [inline]

Definition at line 136 of file complexI.H.

void operator *= ( const   scalar  )  [inline]

Definition at line 142 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:

complex operator! (  )  const [inline]

Definition at line 156 of file complexI.H.

bool operator== ( const complex &   )  const [inline]

Definition at line 162 of file complexI.H.

bool operator!= ( const complex &   )  const [inline]

Definition at line 168 of file complexI.H.

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


Friends And Related Function Documentation

scalar magSqr ( const complex &  c  )  [friend]

Definition at line 177 of file complexI.H.

complex sqr ( const complex &  c  )  [friend]

Definition at line 183 of file complexI.H.

scalar mag ( const complex &  c  )  [friend]

Definition at line 189 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 limit ( const complex &  c1,
const complex &  c2 
) [friend]

Definition at line 221 of file complexI.H.

const complex& sum ( const complex &  c  )  [friend]

Definition at line 227 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 &  c  )  [friend]

Definition at line 254 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 &  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 284 of file complexI.H.

complex operator * ( const   scalar,
const complex &  c 
) [friend]

Definition at line 296 of file complexI.H.

complex operator * ( const complex &  c,
const   scalar 
) [friend]

Definition at line 302 of file complexI.H.

complex operator/ ( const complex &  c,
const   scalar 
) [friend]

Definition at line 308 of file complexI.H.

complex operator/ ( const   scalar,
const complex &  c 
) [friend]

Definition at line 314 of file complexI.H.

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

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


Member Data Documentation

const char* const typeName [static]

Definition at line 76 of file complex.H.

const complex zero [static]

Definition at line 78 of file complex.H.

const complex one [static]

Definition at line 79 of file complex.H.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd