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

PsPair< T1, T2 > Class Template Reference

a classic pair that is flowable. More...

#include <PsPair.h>

Inheritance diagram for PsPair< T1, T2 >:

Inheritance graph
[legend]
Collaboration diagram for PsPair< T1, T2 >:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsPair (const T1 &t1, const T2 &t2)
 constructor

 PsPair (const PsPair &orig)
 copy constructor

 PsPair ()
 default contructor

virtual ~PsPair ()
virtual PsPolatorNTcreatePolator (void)
 create an *polator

virtual void pack (PsOutgoingSynchronisationMessage &out) const
 insert the pair in a stream

virtual void unpack (PsIncomingSynchronisationMessage &in)
 extract a pair from a stream

virtual void extract (istream &in)
 extraction from an input stream

virtual void insertInStream (ostream &out) const
 insertion in an output stream


Detailed Description

template<typename T1, typename T2>
class PsPair< T1, T2 >

a classic pair that is flowable.

in the future, should become a PsType

Author:
David Margery
Version:
1.0

Definition at line 37 of file PsPair.h.


Constructor & Destructor Documentation

template<typename T1, typename T2>
PsPair< T1, T2 >::PsPair const T1 &    t1,
const T2 &    t2
[inline]
 

constructor

Definition at line 41 of file PsPair.h.

00042                                         : 
00043       pair<T1,T2>(t1,t2) ,
00044       PsType()
00045    {
00046       

template<typename T1, typename T2>
PsPair< T1, T2 >::PsPair const PsPair< T1, T2 > &    orig [inline]
 

copy constructor

Definition at line 49 of file PsPair.h.

00050                                  :
00051       pair<T1, T2> (orig.first, orig.second ),
00052       PsType()
00053    {
00054 
   }

template<typename T1, typename T2>
PsPair< T1, T2 >::PsPair   [inline]
 

default contructor

Definition at line 58 of file PsPair.h.

00059             : 
00060       pair<T1,T2>(),
00061       PsType ()
00062    {
00063 

template<typename T1, typename T2>
virtual PsPair< T1, T2 >::~PsPair   [inline, virtual]
 

Definition at line 67 of file PsPair.h.

00069    {
00070 


Member Function Documentation

template<typename T1, typename T2>
virtual PsPolatorNT* PsPair< T1, T2 >::createPolator void    [inline, virtual]
 

create an *polator

Implements PsType.

Definition at line 74 of file PsPair.h.

00076    {
00077       return new PsPolator<PsPair<T1,T2> >() ;

template<typename T1, typename T2>
virtual void PsPair< T1, T2 >::extract istream &    in [inline, virtual]
 

extraction from an input stream

Implements PsFlowable.

Definition at line 95 of file PsPair.h.

00097    {
00098       in >> first
00099          >> second ;

template<typename T1, typename T2>
virtual void PsPair< T1, T2 >::insertInStream ostream &    out const [inline, virtual]
 

insertion in an output stream

Implements PsFlowable.

Definition at line 103 of file PsPair.h.

00105    {
00106       out<< first <<" "
00107          << second <<" " ;

template<typename T1, typename T2>
virtual void PsPair< T1, T2 >::pack PsOutgoingSynchronisationMessage   out const [inline, virtual]
 

insert the pair in a stream

Reimplemented from PsFlowable.

Definition at line 80 of file PsPair.h.

00082    {
00083       out <<first
00084           <<second ;

template<typename T1, typename T2>
virtual void PsPair< T1, T2 >::unpack PsIncomingSynchronisationMessage   in [inline, virtual]
 

extract a pair from a stream

Reimplemented from PsFlowable.

Definition at line 87 of file PsPair.h.

00089    {
00090       in >>first
00091          >>second ;


The documentation for this class was generated from the following file:
logo OpenMask

Documentation generated on Mon Nov 25 15:26:20 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001