8 #ifndef COFBUCKETCOUNTERS_H_
9 #define COFBUCKETCOUNTERS_H_
16 #include "rofl/common/openflow/cofbucketcounter.h"
17 #include "rofl/common/logging.h"
25 std::map<uint32_t, cofbucket_counter> bucketcounters;
66 clear() {
return bucketcounters.clear(); };
72 get_version()
const {
return ofp_version; };
78 set_version(uint8_t ofp_version) { this->ofp_version = ofp_version; };
92 pack(uint8_t* buf,
size_t buflen);
98 unpack(uint8_t* buf,
size_t buflen);
106 add_bucket_counter(uint32_t bucket_counter_id);
112 drop_bucket_counter(uint32_t bucket_counter_id);
118 set_bucket_counter(uint32_t bucket_counter_id);
124 get_bucket_counter(uint32_t bucket_counter_id)
const;
130 has_bucket_counter(uint32_t bucket_counter_id);
139 os <<
rofl::indent(0) <<
"<cofbucket_counters #bucket-counters:" << bcs.bucketcounters.size() <<
" >" << std::endl;
141 for (std::map<uint32_t, cofbucket_counter>::const_iterator
142 it = bcs.bucketcounters.begin(); it != bcs.bucketcounters.end(); ++it) {
Definition: cofbucketcounters.h:22
Definition: cofbucketcounter.h:27