4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
6 // Stefan Bund <g0dil@berlios.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 \brief DebugModules inline non-template implementation */
28 #define prefix_ inline
29 ///////////////////////////////cci.p///////////////////////////////////////
31 ///////////////////////////////////////////////////////////////////////////
32 // senf::ppi::module::debug::ActivePacketSource
34 prefix_ senf::ppi::module::debug::ActivePacketSource::ActivePacketSource()
39 prefix_ void senf::ppi::module::debug::ActivePacketSource::submit(Packet packet)
44 ///////////////////////////////////////////////////////////////////////////
45 // senf::ppi::module::debug::PassivePacketSource
47 prefix_ senf::ppi::module::debug::PassivePacketSource::PassivePacketSource()
50 output.onRequest(&PassivePacketSource::request);
53 prefix_ void senf::ppi::module::debug::PassivePacketSource::submit(Packet packet)
55 packets_.push_back(packet);
58 prefix_ bool senf::ppi::module::debug::PassivePacketSource::empty()
60 return packets_.empty();
63 prefix_ senf::ppi::module::debug::PassivePacketSource::size_type
64 senf::ppi::module::debug::PassivePacketSource::size()
66 return packets_.size();
69 ////////////////////////////////////////
72 prefix_ void senf::ppi::module::debug::PassivePacketSource::request()
74 output(packets_.front());
78 ///////////////////////////////////////////////////////////////////////////
79 // senf::ppi::module::debug::ActivePacketSink
81 prefix_ senf::ppi::module::debug::ActivePacketSink::ActivePacketSink()
86 prefix_ senf::Packet senf::ppi::module::debug::ActivePacketSink::request()
91 ///////////////////////////////////////////////////////////////////////////
92 // senf::ppi::module::debug::PassivePacketSink
94 prefix_ senf::ppi::module::debug::PassivePacketSink::PassivePacketSink()
97 input.onRequest(&PassivePacketSink::request);
100 prefix_ bool senf::ppi::module::debug::PassivePacketSink::empty()
102 return packets_.empty();
105 prefix_ senf::ppi::module::debug::PassivePacketSink::size_type
106 senf::ppi::module::debug::PassivePacketSink::size()
108 return packets_.size();
111 prefix_ senf::ppi::module::debug::PassivePacketSink::iterator
112 senf::ppi::module::debug::PassivePacketSink::begin()
114 return packets_.begin();
117 prefix_ senf::ppi::module::debug::PassivePacketSink::iterator
118 senf::ppi::module::debug::PassivePacketSink::end()
120 return packets_.end();
123 prefix_ senf::Packet senf::ppi::module::debug::PassivePacketSink::back()
128 return packets_.back();
131 prefix_ senf::Packet senf::ppi::module::debug::PassivePacketSink::pop_back()
139 prefix_ void senf::ppi::module::debug::PassivePacketSink::clear()
141 packets_.erase(packets_.begin(), packets_.end());
144 ////////////////////////////////////////
147 prefix_ void senf::ppi::module::debug::PassivePacketSink::request()
149 packets_.push_back(input());
152 ///////////////////////////////cci.e///////////////////////////////////////
159 // comment-column: 40
160 // c-file-style: "senf"
161 // indent-tabs-mode: nil
162 // ispell-local-dictionary: "american"
163 // compile-command: "scons -u test"