14 m_packets.push_back(packet);
20 if (m_packets.size() <= packetIndex)
throw Exception();
21 m_packets.insert(m_packets.begin() + packetIndex, packet);
27 if (m_packets.size() <= packetIndex)
throw Exception();
28 m_packets.erase(m_packets.begin() + packetIndex);
40 return m_packets.size();
46 if (m_packets.size() <= packetIndex)
throw Exception();
47 return m_packets[packetIndex];
53 if (m_packets.size() <= packetIndex)
throw Exception();
54 return m_packets[packetIndex];
60 size_t packetCount = m_packets.size();
61 for (
size_t i = 0; i < packetCount; ++i)
62 (m_packets[i]).accept(visitor);