31 #ifndef GOOGLE_PROTOBUF_HAS_BITS_H__
32 #define GOOGLE_PROTOBUF_HAS_BITS_H__
34 #include <google/protobuf/stubs/common.h>
35 #include <google/protobuf/port.h>
37 #include <google/protobuf/port_def.inc>
40 #error "You cannot SWIG proto headers"
47 template <
size_t doublewords>
52 PROTOBUF_NDEBUG_INLINE
void Clear() {
69 return !(*
this == rhs);
89 return !(has_bits_[0] | has_bits_[1]);
94 return !(has_bits_[0] | has_bits_[1] | has_bits_[2]);
99 return !(has_bits_[0] | has_bits_[1] | has_bits_[2] | has_bits_[3]);
102 template <
size_t doublewords>
104 for (
size_t i = 0;
i < doublewords; ++
i) {
105 if (has_bits_[i])
return false;
114 #include <google/protobuf/port_undef.inc>
116 #endif // GOOGLE_PROTOBUF_HAS_BITS_H__