Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

FD::Complex< T > Class Template Reference

#include <Complex.h>

Inheritance diagram for FD::Complex< T >:

Inheritance graph
[legend]
Collaboration diagram for FD::Complex< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::complex< T > basicType
 You can always get the type of the Complex<T> by using typename Complex<T>::basicType.

Public Member Functions

 Complex ()
 Default constructor.
 Complex (const std::complex< T > &val)
 Constructor with a complex<T>.
 Complex (const Complex< T > &val)
 Constructor with a Complex<T>.
 Complex (const NetCType< std::complex< T > > &obj)
 Constructor with a NetCType<complex<T> >.
void printOn (std::ostream &out) const
void readFrom (std::istream &in)
void serialize (std::ostream &out) const
void unserialize (std::istream &in)
void prettyPrint (std::ostream &out) const
std::complex< T > & val () const
void destroy ()
virtual ObjectRef clone ()

Static Public Member Functions

static Complex< T > * alloc ()
static Complex< T > * alloc (const Complex< T > &obj)

Detailed Description

template<class T>
class FD::Complex< T >

Base class for Complex<T> numbers.
Author:
Dominic Letourneau
Date:
18/02/2004


Member Function Documentation

template<class T>
static Complex<T>* FD::Complex< T >::alloc const Complex< T > &  obj  )  [inline, static]
 

Allocat a Complet<T> value from the pool, copying from another Complex<T> value

Parameters:
obj The value to be copied
Returns:
Complex<T>* a copy of obj

template<class T>
static Complex<T>* FD::Complex< T >::alloc  )  [inline, static]
 

Allocate a Complex<T> value from the pool

Returns:
Complex<T>* the value from the pool

template<class T>
virtual ObjectRef FD::Complex< T >::clone  )  [inline, virtual]
 

clone a Complex<T>

Reimplemented from FD::Object.

template<class T>
void FD::Complex< T >::destroy  )  [inline, virtual]
 

Destroy any Complex<T> from memory. This function is used by the ObjectPool<Complex<T> > class.

Reimplemented from FD::Object.

template<class T>
void FD::Complex< T >::prettyPrint std::ostream &  out  )  const [inline, virtual]
 

Standard formatted output for Complex<T>

Parameters:
out the output stream

Reimplemented from FD::Object.

template<class T>
void FD::Complex< T >::printOn std::ostream &  out  )  const [inline, virtual]
 

Formatted output in the FlowDesigner format
Format : <Complex<T> complex<T> value >

Parameters:
out the output stream

Implements FD::Object.

template<class T>
void FD::Complex< T >::readFrom std::istream &  in  )  [inline, virtual]
 

Formatted input in the FlowDesigner format
Format : <Complex<T> complex<T> value >

Parameters:
in the input stream

Reimplemented from FD::Object.

template<class T>
void FD::Complex< T >::serialize std::ostream &  out  )  const [inline, virtual]
 

Binary output in the FlowDesigner format
Format : {Complex<T> |complex<T> value }

Parameters:
out the output stream

Reimplemented from FD::Object.

template<class T>
void FD::Complex< T >::unserialize std::istream &  in  )  [inline, virtual]
 

Binary input in the FlowDesigner format
Format : {Complex<T> |complex<T> value }

Parameters:
in the input stream

Reimplemented from FD::Object.

template<class T>
std::complex<T>& FD::Complex< T >::val  )  const [inline]
 

Returns the complex<T> wrapped value

Returns:
complex<T> the complex<T> value wrapped


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:29:15 2005 for FlowDesigner by  doxygen 1.4.4