8 #ifndef COFGROUPDESCSTATSARRAY_H_
9 #define COFGROUPDESCSTATSARRAY_H_
14 #include "rofl/common/openflow/cofgroupdescstats.h"
15 #include "rofl/common/logging.h"
23 std::map<uint32_t, cofgroup_desc_stats_reply> array;
67 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
73 unpack(uint8_t *buf,
size_t buflen);
81 size()
const {
return array.size(); };
87 clear() { array.clear(); };
92 std::map<uint32_t, cofgroup_desc_stats_reply>
const&
93 get_group_desc_stats()
const {
return array; };
98 std::map<uint32_t, cofgroup_desc_stats_reply>&
99 set_group_desc_stats() {
return array; };
107 add_group_desc_stats(uint32_t group_id);
113 drop_group_desc_stats(uint32_t group_id);
119 set_group_desc_stats(uint32_t group_id);
125 get_group_desc_stats(uint32_t group_id)
const;
131 has_group_desc_stats(uint32_t group_id);
139 get_version()
const {
return ofp_version; };
145 set_version(uint8_t ofp_version) { this->ofp_version = ofp_version; };
151 os <<
rofl::indent(0) <<
"<cofgroupdescstatsarray #groups:" << (int)groupdescstatsarray.array.size() <<
" >" << std::endl;
153 for (std::map<uint32_t, cofgroup_desc_stats_reply>::const_iterator
154 it = groupdescstatsarray.array.begin(); it != groupdescstatsarray.array.end(); ++it) {
Definition: cofgroupdescstatsarray.h:20
Definition: cofgroupdescstats.h:23
virtual size_t length() const
Definition: cofgroupdescstatsarray.cc:67