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

portimpl.cc

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 #include "portimpl.h"
00012 #include <assert.h>
00013 
00014 InPortImpl::InPortImpl(const IdBase& n, Connector& c) : 
00015   InPortBase(n,c), 
00016   impl(0)
00017 { }
00018 
00019 rteInPort* InPortImpl::rte() const 
00020 { 
00021   return impl; 
00022 }
00023 
00024 
00026 
00027 OutPortImpl::OutPortImpl(const IdBase& n, Connector& c) : 
00028   OutPortBase(n,c)
00029 { }
00030 
00031 unsigned int OutPortImpl::nrRteOutPorts() const
00032 {
00033   return impl.size();
00034 }
00035 
00036 rteOutPort* OutPortImpl::rte(unsigned int i) const 
00037 { 
00038   assert(i < impl.size());
00039   return impl[i]; 
00040 }

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