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

FD::PrintableGenericType< T > Class Template Reference

#include <net_types.h>

Inheritance diagram for FD::PrintableGenericType< T >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PrintableGenericType ()
 PrintableGenericType (T val)
 PrintableGenericType (PrintableGenericType< T > &copy)
 copy constructor
T & val ()
void printOn (std::ostream &out) const
virtual void prettyPrint (std::ostream &out=std::cout) const
void readFrom (std::istream &in)
void serialize (std::ostream &out) const
void unserialize (std::istream &in)

Detailed Description

template<class T>
class FD::PrintableGenericType< T >

This is a generic printable type that FlowDesigner will handle. Subclass PrintableGenericType if you want to add specific operations and operators


Constructor & Destructor Documentation

template<class T>
FD::PrintableGenericType< T >::PrintableGenericType  )  [inline]
 

Default constructor

template<class T>
FD::PrintableGenericType< T >::PrintableGenericType val  )  [inline]
 

Constructor with a value

Parameters:
val the value


Member Function Documentation

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

Formatted output (std)

Parameters:
out output stream

Reimplemented from FD::Object.

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

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

Parameters:
out the output stream

Reimplemented from FD::GenericType< T >.

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

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

Parameters:
in the input stream

Reimplemented from FD::Object.

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

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

Parameters:
out the output stream

Reimplemented from FD::Object.

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

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

Parameters:
in the input stream

Reimplemented from FD::Object.

template<class T>
T& FD::PrintableGenericType< T >::val  )  [inline]
 

Value accessor.

Returns:
T the value.

Reimplemented from FD::GenericType< T >.


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