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

fifobase.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 <sys/types.h>
00012 #include "fifobase.h"
00013 #include "networkbase.h"
00014 #include "portbase.h"
00015 
00016 FifoBase::FifoBase(const IdBase& n) : 
00017   Connector(n)
00018 {
00019   insert(parentNetwork(), this);
00020 }
00021 
00022 NetworkBase* FifoBase::parentNetwork() const
00023 {
00024   return (NetworkBase*)parent();
00025 }
00026 
00027 OutPortBase* FifoBase::srcPort() const
00028 {
00029   return (OutPortBase*)getSrc();
00030 }
00031 
00032 InPortBase*  FifoBase::dstPort(unsigned int i) const
00033 {
00034   return (InPortBase*)getDst(i);
00035 }
00036 

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