// $Id$ // // Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // Definition of inline template functions //#include "GenericPacket.ih" // Custom includes #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// template template prefix_ senf::GenericPacket::GenericPacket(Arg const & arg) : Packet(arg) {} template prefix_ void senf::GenericPacket::init() { insert(begin(),HEADER,0); insert(end(),TRAILER,0); } template prefix_ typename senf::GenericPacket::iterator senf::GenericPacket::begin_header() const { return this->begin(); } template prefix_ typename senf::GenericPacket::iterator senf::GenericPacket::end_header() const { return this->begin() + HEADER; } template prefix_ typename senf::GenericPacket::size_type senf::GenericPacket::header_len() { return HEADER; } template prefix_ typename senf::GenericPacket::iterator senf::GenericPacket::begin_trailer() const { return this->end() - TRAILER; } template prefix_ typename senf::GenericPacket::iterator senf::GenericPacket::end_trailer() const { return this->end(); } template prefix_ typename senf::GenericPacket::size_type senf::GenericPacket::trailer_len() { return TRAILER; } ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_ // Local Variables: // mode: c++ // fill-column: 100 // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" // End: