Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

portimplt.h

Go to the documentation of this file.
00001 /*--------------------------------------------------------------------
00002  *
00003  * (C) Copyright Koninklijke Philips Electronics NV 2006. 
00004  * All rights reserved. This software is licensed under the terms of
00005  * version 2.1 of the GNU Lesser General Public License as published 
00006  * by the Free Software Foundation. For licensing and warranty
00007  * information, see the file COPYING in the main directory.
00008  *
00009  *------------------------------------------------------------------*/
00010 
00011 #ifndef PORTIMPLT_H
00012 #define PORTIMPLT_H
00013 
00014 #include "portimpl.h"
00015 #include "io.h"
00016 
00017 template<class T>
00018 class InPortImplT : public InPortImpl
00019 {
00020 public:
00021   InPortImplT(const IdBase& n, In<T>& i);
00022 
00023   void read(T& s);
00024   void read(T* p, unsigned int n);
00025 };
00026 
00027 
00028 template<class T>
00029 class OutPortImplT : public OutPortImpl
00030 {
00031 public:
00032   OutPortImplT(const IdBase& n, Out<T>& i);
00033 
00034   void write(const T& s);
00035   void write(const T* p, unsigned int n);
00036 };
00037 
00038 
00039 // include implementation of template class
00040 #include "portimplt.cc"
00041 
00042 #endif

Generated on Wed Feb 15 14:52:39 2006 for yapi by doxygen 1.3.2