userver: utils::MacaddrBase< N > Class Template Reference
Loading...
Searching...
No Matches
utils::MacaddrBase< N > Class Template Referencefinal

#include <userver/utils/macaddr.hpp>

Detailed Description

template<std::size_t N>
class utils::MacaddrBase< N >

Base class for Macaddr/Macaddr8.

Definition at line 21 of file macaddr.hpp.

Public Types

using OctetsType = std::array<unsigned char, N>
 

Public Member Functions

 MacaddrBase (const OctetsType &macaddr) noexcept
 
const OctetsType & GetOctets () const noexcept
 Get octets of MAC-address.
 

Member Typedef Documentation

◆ OctetsType

template<std::size_t N>
using utils::MacaddrBase< N >::OctetsType = std::array<unsigned char, N>

Definition at line 25 of file macaddr.hpp.

Constructor & Destructor Documentation

◆ MacaddrBase()

template<std::size_t N>
utils::MacaddrBase< N >::MacaddrBase ( const OctetsType & macaddr)
inlineexplicitnoexcept

Definition at line 29 of file macaddr.hpp.

Member Function Documentation

◆ GetOctets()

template<std::size_t N>
const OctetsType & utils::MacaddrBase< N >::GetOctets ( ) const
inlinenoexcept

Get octets of MAC-address.

Definition at line 32 of file macaddr.hpp.

Friends And Related Symbol Documentation

◆ operator!=

template<std::size_t N>
bool operator!= ( const MacaddrBase< N > & a,
const MacaddrBase< N > & b )
friend

Definition at line 38 of file macaddr.hpp.

◆ operator==

template<std::size_t N>
bool operator== ( const MacaddrBase< N > & a,
const MacaddrBase< N > & b )
friend

Definition at line 34 of file macaddr.hpp.


The documentation for this class was generated from the following file: