14 #ifndef HH_WiBACK_MIHMessaging_Types_VLanId_ 15 #define HH_WiBACK_MIHMessaging_Types_VLanId_ 1 19 #include <unordered_set> 20 #include <boost/operators.hpp> 32 :
public boost::equality_comparable<VLanId>,
33 public boost::less_than_comparable<VLanId>
42 explicit operator bool()
const;
46 std::uint16_t
id()
const;
62 std::uint16_t type_:2;
64 SENF_CONSOLE_PARSE_FRIEND(
VLanId );
std::size_t hash_value(VLanId const &v)
std::unordered_set< VLanId > VLanIdSetFast
static bool hasTag(senf::EthernetPacket const ð)
bool sameTagType(VLanId const &other) const
static bool hasSTag(senf::EthernetPacket const ð)
static Packet payloadPkt(senf::EthernetPacket const ð)
static std::uint16_t payloadTypeLength(senf::EthernetPacket const ð)
VLanId(std::uint16_t id=0, Type type=NoTag)
static bool hasCTag(senf::EthernetPacket const ð)
void senf_console_parse_argument(senf::console::ParseCommandInfo::TokensRange const &tokens, VLanId &vlanId)
bool operator==(VLanId const &other) const
std::ostream & operator<<(std::ostream &os, InterfaceDeviceId const &id)
boost::iterator_range< token_iterator > TokensRange
bool operator<(VLanId const &other) const
ConcretePacket< EthernetPacketType > EthernetPacket
static PKT payload(senf::EthernetPacket const ð)
std::set< VLanId > VLanIdSet