8 #ifndef COFQUEUESTATSARRAY_H_
9 #define COFQUEUESTATSARRAY_H_
14 #include "rofl/common/openflow/cofqueuestats.h"
22 std::map<uint32_t, std::map<uint32_t, cofqueue_stats_reply> > array;
72 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
78 unpack(uint8_t *buf,
size_t buflen);
86 size()
const {
return array.size(); };
92 clear() { array.clear(); };
98 get_version()
const {
return ofp_version; };
104 set_version(uint8_t ofp_version) { this->ofp_version = ofp_version; };
109 std::map<uint32_t, std::map<uint32_t, cofqueue_stats_reply> >
const&
110 get_queue_stats()
const {
return array; };
115 std::map<uint32_t, std::map<uint32_t, cofqueue_stats_reply> >&
116 set_queue_stats() {
return array; };
124 add_queue_stats(uint32_t port_no, uint32_t queue_id);
130 drop_queue_stats(uint32_t port_no, uint32_t queue_id);
136 set_queue_stats(uint32_t port_no, uint32_t queue_id);
142 get_queue_stats(uint32_t port_no, uint32_t queue_id)
const;
148 has_queue_stats(uint32_t port_no, uint32_t queue_id);
154 os <<
"<cofqueuestatsarray #ports:" << (int)groupstatsarray.array.size() <<
" >" << std::endl;
156 for (std::map<uint32_t, std::map<uint32_t, cofqueue_stats_reply> >::const_iterator
157 jt = groupstatsarray.array.begin(); jt != groupstatsarray.array.end(); ++jt) {
158 os <<
rofl::indent(0) <<
"<portno: " << (int)jt->first <<
" #queues: " << (
int)jt->second.size() <<
" >" << std::endl;
160 for (std::map<uint32_t, cofqueue_stats_reply>::const_iterator
161 it = jt->second.begin(); it != jt->second.end(); ++it) {
Definition: cofqueuestats.h:146
virtual size_t length() const
Definition: cofqueuestatsarray.cc:101
Definition: cofqueuestatsarray.h:19