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 "fifoimpl.h" 00012 #include <assert.h> 00013 00014 FifoImpl::FifoImpl(const IdBase& n) : 00015 FifoBase(n), minSz(0), maxSz(INT_MAX) 00016 { } 00017 00018 FifoImpl::FifoImpl(const IdBase& n, unsigned int lo) : 00019 FifoBase(n), minSz(lo), maxSz(INT_MAX) 00020 { } 00021 00022 FifoImpl::FifoImpl(const IdBase& n, unsigned int lo, unsigned int hi) : 00023 FifoBase(n), minSz(lo), maxSz(hi) 00024 { } 00025 00026 unsigned int FifoImpl::minSize() const 00027 { 00028 return minSz; 00029 } 00030 00031 unsigned int FifoImpl::maxSize() const 00032 { 00033 return maxSz; 00034 } 00035 00036 unsigned int FifoImpl::nrRteFifos() const 00037 { 00038 return impl.size(); 00039 } 00040 00041 rteFifo* FifoImpl::rte(unsigned int i) const 00042 { 00043 assert(i < impl.size()); 00044 return impl[i]; 00045 }